[hg] galaxy 2362: Clean up (unify) workflow sharing UI a bit
details: http://www.bx.psu.edu/hg/galaxy/rev/8c93a7c02c27 changeset: 2362:8c93a7c02c27 user: James Taylor <james@jamestaylor.org> date: Wed Apr 22 12:36:17 2009 -0400 description: Clean up (unify) workflow sharing UI a bit 3 file(s) affected in this change: lib/galaxy/web/controllers/workflow.py templates/workflow/list.mako templates/workflow/sharing.mako diffs (62 lines): diff -r ed6bfb311fb0 -r 8c93a7c02c27 lib/galaxy/web/controllers/workflow.py --- a/lib/galaxy/web/controllers/workflow.py Wed Apr 22 12:13:29 2009 -0400 +++ b/lib/galaxy/web/controllers/workflow.py Wed Apr 22 12:36:17 2009 -0400 @@ -91,7 +91,7 @@ session.save_or_update( share ) session.flush() trans.set_message( "Workflow '%s' shared with user '%s'" % ( stored.name, other.email ) ) - return self.list( trans ) + return trans.response.send_redirect( url_for( controller='workflow', action='sharing', id=id ) ) return trans.fill_template( "workflow/share.mako", message = msg, messagetype = mtype, diff -r ed6bfb311fb0 -r 8c93a7c02c27 templates/workflow/list.mako --- a/templates/workflow/list.mako Wed Apr 22 12:13:29 2009 -0400 +++ b/templates/workflow/list.mako Wed Apr 22 12:36:17 2009 -0400 @@ -47,8 +47,7 @@ <a class="action-button" href="${h.url_for( action='editor', id=trans.security.encode_id(workflow.id) )}" target="_parent">Edit</a> <a class="action-button" href="${h.url_for( controller='root', action='index', workflow_id=trans.security.encode_id(workflow.id) )}" target="_parent">Run</a> <a class="action-button" href="${h.url_for( action='rename', id=trans.security.encode_id(workflow.id) )}">Rename</a> - <a class="action-button" href="${h.url_for( action='share', id=trans.security.encode_id(workflow.id) )}">Share</a> - <a class="action-button" href="${h.url_for( action='sharing', id=trans.security.encode_id(workflow.id) )}">Manage sharing</a> + <a class="action-button" href="${h.url_for( action='sharing', id=trans.security.encode_id(workflow.id) )}">Sharing</a> <a class="action-button" confirm="Are you sure you want to delete workflow '${workflow.name}'?" href="${h.url_for( action='delete', id=trans.security.encode_id(workflow.id) )}">Delete</a> </div> </td> diff -r ed6bfb311fb0 -r 8c93a7c02c27 templates/workflow/sharing.mako --- a/templates/workflow/sharing.mako Wed Apr 22 12:13:29 2009 -0400 +++ b/templates/workflow/sharing.mako Wed Apr 22 12:36:17 2009 -0400 @@ -39,7 +39,15 @@ The following users will see this workflow in thier workflow list, and be able to run it or create their own copy of it: </p> - + + <ul class="manage-table-actions"> + <li> + <a class="action-button" href="${h.url_for( action='share', id=trans.security.encode_id(stored.id) )}"> + <span>Share with another user</span> + </a> + </li> + </ul> + <table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%"> <tr class="header"> <th>Email</th> @@ -60,8 +68,13 @@ </tr> %endfor </table> + %else: - You have not shared this workflow with any users. - + <p>You have not shared this workflow with any users.</p> + + <a class="action-button" href="${h.url_for( action='share', id=trans.security.encode_id(stored.id) )}"> + <span>Share with another user</span> + </a> + %endif \ No newline at end of file
participants (1)
-
Nate Coraor