[hg] galaxy 3544: lims: workflow field now appears as a link to ...
details: http://www.bx.psu.edu/hg/galaxy/rev/cb9b4a967ff2 changeset: 3544:cb9b4a967ff2 user: rc date: Wed Mar 17 20:59:47 2010 -0400 description: lims: workflow field now appears as a link to workflow run page diffstat: templates/admin/requests/show_request.mako | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diffs (17 lines): diff -r 1d98e3705f35 -r cb9b4a967ff2 templates/admin/requests/show_request.mako --- a/templates/admin/requests/show_request.mako Wed Mar 17 17:10:24 2010 -0400 +++ b/templates/admin/requests/show_request.mako Wed Mar 17 20:59:47 2010 -0400 @@ -311,7 +311,12 @@ %for field_index, field in fields_dict.items(): <td> %if sample_values[field_index]: - ${sample_values[field_index]} + %if field['type'] == 'WorkflowField': + <% workflow = trans.sa_session.query( trans.app.model.StoredWorkflow ).get( int(sample_values[field_index]) ) %> + <a href="${h.url_for( controller='workflow', action='run', id=trans.security.encode_id(workflow.id) )}">${workflow.name}</a> + %else: + ${sample_values[field_index]} + %endif %else: <i>None</i> %endif
participants (1)
-
Greg Von Kuster