From e00e64d7cdd4bd7e89234096a190e74e6ea5e4ba Mon Sep 17 00:00:00 2001 From: Ramkrishna Chakrabarty Date: Wed, 5 Aug 2009 11:19:46 -0400 Subject: [PATCH] Fixed the issue which was causing the 'Lab' tab in the masthead to appear automatically. Now, this tab is visible only when request types have been created by the admin. --- templates/base_panels.mako | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/templates/base_panels.mako b/templates/base_panels.mako index 3c2a61be8f2..2fa83f09936 100644 --- a/templates/base_panels.mako +++ b/templates/base_panels.mako @@ -149,15 +149,17 @@ ${tab( "workflow", "Workflow", h.url_for( controller='workflow', action='index' ))} ${tab( "libraries", "Libraries", h.url_for( controller='library', action='index' ))} - - - Lab - - + + %if trans.request_types(): + + Lab + + + %endif %if app.config.get_bool( 'enable_tracks', False ):