[hg] galaxy 2535: Fixed the issue which was causing the 'Lab' ta...
details: http://www.bx.psu.edu/hg/galaxy/rev/93d502caec2a changeset: 2535:93d502caec2a user: rc date: Wed Aug 05 11:19:46 2009 -0400 description: 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. 1 file(s) affected in this change: templates/base_panels.mako diffs (30 lines): diff -r 80e1c1772ed5 -r 93d502caec2a templates/base_panels.mako --- a/templates/base_panels.mako Wed Aug 05 11:02:53 2009 -0400 +++ b/templates/base_panels.mako Wed Aug 05 11:19:46 2009 -0400 @@ -149,15 +149,17 @@ ${tab( "workflow", "Workflow", h.url_for( controller='workflow', action='index' ))} ${tab( "libraries", "Libraries", h.url_for( controller='library', action='index' ))} - - <td class="tab"> - <a>Lab</a> - <div class="submenu"> - <ul> - <li><a target="requests" href="${h.url_for( controller='requests', action='index' )}">Sequencing Requests</a></li> - </ul> - </div> - </td> + + %if trans.request_types(): + <td class="tab"> + <a>Lab</a> + <div class="submenu"> + <ul> + <li><a target="requests" href="${h.url_for( controller='requests', action='index' )}">Sequencing Requests</a></li> + </ul> + </div> + </td> + %endif %if app.config.get_bool( 'enable_tracks', False ): <td class="tab">
participants (1)
-
Greg Von Kuster