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.

This commit is contained in:
Ramkrishna Chakrabarty
2009-08-05 11:19:46 -04:00
parent 641b008790
commit e00e64d7cd
+11 -9
View File
@@ -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">