aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zurich/header.html
blob: 7e88f3f0f43f9eb83f578d49197da536ac3d27e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!doctype html>
<!--[if lt IE 7]><html class="no-js ie6 iel8" lang="[% lang_code %]"><![endif]-->
<!--[if IE 7]>   <html class="no-js ie7 iel8" lang="[% lang_code %]"><![endif]-->
<!--[if IE 8]>   <html class="no-js ie8 iel8" lang="[% lang_code %]"><![endif]-->
<!--[if IE 9]>   <html class="no-js ie9" lang="[% lang_code %]"><![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="[% lang_code %]"><!--<![endif]-->
    <head>
        <meta name="viewport" content="initial-scale=1.0">

        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
        <meta name="HandHeldFriendly" content="true">
        <meta name="mobileoptimized" content="0">

[% SET start = c.config.ADMIN_BASE_URL IF admin %]

        <link rel="stylesheet" href="[% start %][% version('/cobrands/' _ c.cobrand.moniker _ '/base.css') %]">
        <link rel="stylesheet" href="[% start %][% version('/cobrands/' _ c.cobrand.moniker _ '/layout.css') %]" media="screen and (min-width:48em)">
        [% extra_css %]
        <!--[if (lt IE 9) & (!IEMobile)]>
            <link rel="stylesheet" href="[% start %][% version('/cobrands/' _ c.cobrand.moniker _ '/layout.css') %]">
        <![endif]-->

        <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/redmond/jquery-ui.css">

        <script src="[% start %][% version('/js/modernizr.custom.js') %]" charset="utf-8"></script>
        <script src="[% start %][% version('/cobrands/fixmystreet/position_map.js') %]" charset="utf-8"></script>
        [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %]
        [% extra_js %]

        <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" charset="utf-8"></script>

        [% INCLUDE 'tracking_code.html' %]

    </head>
    <body class="[% bodyclass | html IF bodyclass %]">

    <div class="wrapper">
        <div class="table-cell">
            <header id="site-header" role="banner">
                <div class="container">
                    <a href="/" id="site-logo-text">Züri wie neu</a>
                    <a href="http://www.stadt-zuerich.ch/" id="site-logo">Stadt Zürich</a>
                    <a href="#main-nav" id="nav-link">Main Navigation</a>
                </div>
            </header>

            <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 [% IF pagename == 'stats' %]class="current"[% END %]>
                <a href="/admin/stats">[% loc('Stats') %]</a>
            </li>
            [% IF admin_type == 'dm' %]
            <li [% IF pagename == 'templates' OR pagename == 'template' %]class="current"[% END %]>
                <a href="/admin/templates">[% loc('Templates') %]</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">
                [% IF NOT admin %]
                  [% INCLUDE 'nav_over_content.html' %]
                [% END %]

                [% pre_container_extra %]

        <!-- [% INCLUDE 'debug_header.html' %] -->