aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/footer.html
blob: 5fd74b3a1a95460d9976162d96451cec1d9edcee (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
                    [% IF pagefooter %]
                    <footer role="contentinfo">
                        [% INCLUDE 'front/footer-marketing.html' %]
                    </footer>
                    [% END %]
                </div><!-- .content role=main -->
            </div><!-- .container -->
        </div><!-- .table-cell -->

        <div class="nav-wrapper">
            <div class="nav-wrapper-2">
                <div id="main-nav" role="navigation">
                    <ul class="nav-menu nav-menu--mysoc">
                        <li><a id="mysoc-logo" href="https://www.mysociety.org/">mySociety</a></li>
                    </ul>
[%
    SET base = "";
    SET base = c.cobrand.base_url IF admin;
%]
                    <ul class="nav-menu nav-menu--main">
                        <li><[% IF c.req.uri.path == '/'
                            %]span[% ELSE %]a href="[% base %]/"[% END %] class="report-a-problem-btn"
                            >[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
                        %]<li><[% IF c.req.uri.path == '/my'
                            %]span[% ELSE %]a href="[% base %]/my"[% END
                            %]>[% c.user_exists ? loc("Your account") : loc("Sign in") %]</[% c.req.uri.path == '/my' ? 'span' : 'a' %]></li>[%
                        %]<li><[% IF c.req.uri.path == '/reports'
                            %]span[% ELSE %]a href="[% base %]/reports[% IF c.user_exists AND c.user.categories.size %]?filter_category=[% c.user.categories.join(",") | uri | html %][% END %]"[% END
                            %]>[% loc("All reports") %]</[% c.req.uri.path == '/reports' ? 'span' : 'a' %]></li>[%
                        %]<li><[% IF c.req.uri.path == '/alert'
                            %]span[% ELSE %]a href="[% base %]/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]"[% END
                            %]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[%
                        %]<li><[% IF c.req.uri.path == '/faq'
                            %]span[% ELSE %]a href="[% base %]/faq"[% END
                            %]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>[%
                        %]<li class="nav-menu__item--privacy"><[% IF c.req.uri.path == '/privacy'
                            %]span[% ELSE %]a href="[% base %]/privacy"[% END
                            %]>[% loc("Privacy") %]</[% c.req.uri.path == '/privacy' ? 'span' : 'a' %]></li>
                    </ul>
                </div>
            </div>
        </div>
    </div> <!-- .wrapper -->

    [% INCLUDE 'common_footer_tags.html' %]

</body>
</html>