From 0db2c70d146d7ea83c69a7fd1cc26812e8492a66 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Thu, 4 Apr 2013 14:23:19 -0400 Subject: [PATCH] Use styles when displaying tool functional test results in the tool shed. --- .../display_tool_functional_test_results.mako | 52 ++++++++++++------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/templates/webapps/tool_shed/repository/display_tool_functional_test_results.mako b/templates/webapps/tool_shed/repository/display_tool_functional_test_results.mako index 2102fa1c872..b2b13894b37 100644 --- a/templates/webapps/tool_shed/repository/display_tool_functional_test_results.mako +++ b/templates/webapps/tool_shed/repository/display_tool_functional_test_results.mako @@ -3,9 +3,37 @@ <%namespace file="/webapps/tool_shed/common/common.mako" import="*" /> <%namespace file="/webapps/tool_shed/repository/common.mako" import="*" /> +<%! + def inherit(context): + if context.get('use_panels'): + return '/webapps/tool_shed/base_panels.mako' + else: + return '/base.mako' +%> + +<%inherit file="${inherit(context)}"/> + +<%def name="render_functional_test_text( functional_test_text )"> + <% + from tool_shed.util.shed_util_common import to_safe_string + %> + + + +
${ to_safe_string( functional_test_text, to_html=True ) }
+ + <% from galaxy.web.framework.helpers import time_ago - from tool_shed.util.shed_util_common import to_safe_string changeset_revision = repository_metadata.changeset_revision has_metadata = repository.metadata_revisions @@ -44,15 +72,6 @@ browse_label = 'Browse repository tip files' %> -<%! - def inherit(context): - if context.get('use_panels'): - return '/webapps/tool_shed/base_panels.mako' - else: - return '/base.mako' -%> -<%inherit file="${inherit(context)}"/> -