implement register_report() and replace More menu with Reports menu

This commit is contained in:
Oliver Gorwits
2013-03-10 17:21:23 +00:00
parent 4a16e3fde3
commit f513000f08
2 changed files with 38 additions and 8 deletions

View File

@@ -38,7 +38,6 @@
<body>
[%
more_dd = { "Reports" = "/reports" }
user_dd = [
{ "title" = "Settings", "link" = "/settings" },
{ "title" = "Help", "link" = "/help" },
@@ -57,17 +56,23 @@
<a href="[% uri_for(ni.path) %]">[% ni.label | html_entity %]</a>
</li>
[% END %]
[% IF more_dd.size %]
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
More <b class="caret"></b></a>
<li class="dropdown[% ' active' IF vars.nav == 'reports' %]">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a>
<ul class="dropdown-menu">
[% FOREACH title IN more_dd.keys.sort %]
<li><a href="[% uri_for(more_dd.$title) %]">[% title | html_entity %]</a></li>
[% FOREACH category IN settings.report_order %]
[% IF vars.reports.$category.size %]
<li class="dropdown-submenu">
<a href="#">[% category | html_entity %]</a>
<ul class="dropdown-menu">
[% FOREACH item IN settings.reports.$category %]
<li><a href="[% uri_for(item.path) %]">[% item.label | html_entity %]</a></li>
[% END %]
</ul>
</li>
[% END %]
[% END %]
</ul>
</li> <!-- /dropdown -->
[% END %]
</ul>
<form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]">
<input placeholder="Find Anything" class="search-query span3"