hide Reports menu if there are no reports

This commit is contained in:
Oliver Gorwits
2013-03-17 14:29:58 +00:00
parent d86e670600
commit b054119d9c

View File

@@ -56,6 +56,7 @@
<a href="[% uri_for(ni.path) %]">[% ni.label | html_entity %]</a> <a href="[% uri_for(ni.path) %]">[% ni.label | html_entity %]</a>
</li> </li>
[% END %] [% END %]
[% IF settings.reports.size %]
<li class="dropdown[% ' active' IF vars.nav == 'reports' %]"> <li class="dropdown[% ' active' IF vars.nav == 'reports' %]">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@@ -73,6 +74,7 @@
[% END %] [% END %]
</ul> </ul>
</li> <!-- /dropdown --> </li> <!-- /dropdown -->
[% END %]
</ul> </ul>
<form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]"> <form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]">
<input placeholder="Find Anything" class="search-query span3" <input placeholder="Find Anything" class="search-query span3"