[galaxy-dev] [hg] galaxy 1735: Fix for displaying a history's activatable dat...

Greg Von Kuster greg at bx.psu.edu
Thu Feb 19 16:32:58 EST 2009


details:   http://www.bx.psu.edu/hg/galaxy/rev/9fb93cfc2449
changeset: 1735:9fb93cfc2449
user:      Greg Von Kuster <greg at bx.psu.edu>
date:      Thu Feb 19 16:25:05 2009 -0500
description:
Fix for displaying a history's activatable datasets.

1 file(s) affected in this change:

templates/root/history.mako

diffs (26 lines):

diff -r dc753c56c745 -r 9fb93cfc2449 templates/root/history.mako
--- a/templates/root/history.mako	Fri Feb 06 13:32:44 2009 -0500
+++ b/templates/root/history.mako	Thu Feb 19 16:25:05 2009 -0500
@@ -248,13 +248,20 @@
 
 <%namespace file="history_common.mako" import="render_dataset" />
 
-%if ( show_deleted and not history.activatable_datasets ) or ( not show_deleted and not history.active_datasets ):
+<%
+    activatable_datasets = []
+    for hda in history.datasets:
+        if not hda.dataset.purged:
+            activatable_datasets.append( hda )
+%>
+
+%if ( show_deleted and not activatable_datasets ) or ( not show_deleted and not history.active_datasets ):
     <div class="infomessagesmall" id="emptyHistoryMessage">
 %else:    
     <%
     if show_deleted:
         #all datasets
-        datasets_to_show = history.activatable_datasets
+        datasets_to_show = activatable_datasets
     else:
         #active (not deleted)
         datasets_to_show = history.active_datasets



More information about the galaxy-dev mailing list