aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zurich/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/zurich/header.html')
-rw-r--r--templates/web/zurich/header.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/web/zurich/header.html b/templates/web/zurich/header.html
index cdff06df8..75698993f 100644
--- a/templates/web/zurich/header.html
+++ b/templates/web/zurich/header.html
@@ -46,6 +46,41 @@
[% pre_container_extra %]
<div class="container">
+
+[% IF admin %]
+ <div class="admin-nav-wrapper">
+ <div class="admin-nav">
+ <ul>
+ [% pagename = c.req.uri.path %]
+ [% pagename = pagename.replace('/admin/?(\w*).*', '$1') %]
+
+ <li [% IF pagename == 'summary' OR pagename == '' %]class="current"[% END %]>
+ <a href="/admin/summary">[% loc('Summary') %]</a>
+ </li>
+ <li [% IF pagename == 'reports' OR pagename == 'report_edit' %]class="current"[% END %]>
+ <a href="/admin/reports">[% loc('Reports') %]</a>
+ </li>
+ [% IF admin_type == 'dm' OR admin_type == 'super' %]
+ <li [% IF pagename == 'bodies' OR pagename == 'body' %]class="current"[% END %]>
+ <a href="/admin/bodies">[% loc('Bodies') %]</a>
+ </li>
+ [% END %]
+ [% IF admin_type == 'super' %]
+ <li [% IF pagename == 'users' OR pagename == 'user_edit' %]class="current"[% END %]>
+ <a href="/admin/users">[% loc('Users') %]</a>
+ </li>
+ [% END %]
+ <li class="search-box">
+ <form method="get" action="[% c.uri_for('reports') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
+ <input type="text" name="search" size="20" id="search" placeholder="[% loc('Search reports') %]">
+ </form>
+
+ </li>
+ </ul>
+ </div>
+ </div>
+[% END %]
+
<div class="content[% " $mainclass" | html IF mainclass %]" role="main">
<!-- [% INCLUDE 'debug_header.html' %] -->