[LNT] r255948 - Fix layout to work with non-db or test-suite pages
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 17:10:37 PST 2015
Author: cmatthews
Date: Thu Dec 17 19:10:37 2015
New Revision: 255948
URL: http://llvm.org/viewvc/llvm-project?rev=255948&view=rev
Log:
Fix layout to work with non-db or test-suite pages
Modified:
lnt/trunk/lnt/server/ui/templates/layout.html
Modified: lnt/trunk/lnt/server/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/layout.html?rev=255948&r1=255947&r2=255948&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/layout.html (original)
+++ lnt/trunk/lnt/server/ui/templates/layout.html Thu Dec 17 19:10:37 2015
@@ -104,6 +104,7 @@
{# LNT Instance Title #}
<div id="lnt-instance">
<a class="brand" href="{{url_for('index')}}">{{old_config.name}}</a>
+ {% if g.db_name is defined %}
<ul class="nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Suite<b class="caret"></b></a>
@@ -114,6 +115,7 @@
</ul>
</li>
</ul>
+ {% endif %}
</div>
{# Go to #}
@@ -138,6 +140,7 @@
{# Database Selector #}
<ul class="nav pull-right">
+ {% if g.db_name is defined %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="dbselect" >Database <b class="caret"></b></a>
<ul class="dropdown-menu">
@@ -152,6 +155,7 @@
{% endfor %}
</ul>
</li>
+ {% endif %}
</ul>
</div>
More information about the llvm-commits
mailing list