From 58340c42dcc382f12526a1e004d8fcf1f69be865 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Tue, 18 Jan 2011 23:21:35 -0500 Subject: [PATCH] History and Workflow in the Sample Grid are now links when the current user is the object owner. --- templates/requests/common/common.mako | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/templates/requests/common/common.mako b/templates/requests/common/common.mako index 3f36fed07d3..f4ab5997eca 100644 --- a/templates/requests/common/common.mako +++ b/templates/requests/common/common.mako @@ -355,7 +355,7 @@ Data Library Folder History - Processing + Workflow %if display_datasets: Run Datasets %endif @@ -447,12 +447,28 @@ %endif %if sample_widget_history: - ${sample_widget_history.name} + %if trans.user == sample_widget_history.user: + + + ${sample_widget_history.name} + + + %else: + ${sample_widget_history.name} + %endif %else: %endif %if sample_widget_workflow: - ${sample_widget_workflow.name} + %if trans.user == sample_widget_workflow.stored_workflow.user: + + + ${sample_widget_workflow.name} + + + %else: + ${sample_widget_workflow.name} + %endif %else: %endif