From 6090c78264d22c8dbb9aa6e96bc45390452a3650 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Thu, 19 Feb 2009 16:25:05 -0500 Subject: [PATCH] Fix for displaying a history's activatable datasets. --- templates/root/history.mako | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/root/history.mako b/templates/root/history.mako index 440ebe66cbe..5db3de9223b 100644 --- a/templates/root/history.mako +++ b/templates/root/history.mako @@ -248,13 +248,20 @@ div#footer { <%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 ):
%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