blob: e652f12f6b67f3daaaa7d5eaa230c2fbaea5dfb8 (
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
|
[%~ IF problem AND NOT problem.non_public ~%]
[%~ INCLUDE navitem uri='/report/new?longitude=' _ problem.longitude _ '&latitude=' _ problem.latitude label=loc('Report another problem here') attrs='class="report-a-problem-btn"' ~%]
[%~ ELSIF latitude AND longitude ~%]
[%~ INCLUDE navitem uri='/report/new?longitude=' _ longitude _ '&latitude=' _ latitude label=loc('Report a problem here') attrs='class="report-a-problem-btn"' ~%]
[%~ ELSIF homepage_template ~%]
[%~ INCLUDE navitem uri='/report' label=loc('Report a problem') attrs='class="report-a-problem-btn"' ~%]
[%~ ELSE ~%]
[%~ INCLUDE navitem uri='/' label=loc('Report a problem') attrs='class="report-a-problem-btn"' ~%]
[%~ END ~%]
[%~ IF c.user_exists ~%]
[%~ INCLUDE navitem uri='/my' label=loc('Your account') ~%]
[%~ ELSE ~%]
[%~ INCLUDE navitem uri='/auth' label=loc('Sign in') ~%]
[%~ END ~%]
[%~ IF c.user_exists AND c.user.has_body_permission_to('planned_reports') ~%]
[%~ INCLUDE navitem always_url=1 uri='/my/planned' label=loc('Shortlist') ~%]
[%~ END ~%]
[%~ INCLUDE 'navigation/_all_reports.html' ~%]
[%~
IF pc;
pc_uri = pc | uri;
pc_suffix = "/list?pc=" _ pc_uri;
END;
INCLUDE navitem uri='/alert' label=loc('Local alerts') suffix=pc_suffix;
~%]
[%~ INCLUDE navitem uri='/faq' label=loc('Help') ~%]
[%~ UNLESS hide_privacy_link ~%]
[%~ INCLUDE navitem uri=c.cobrand.privacy_policy_url label=loc('Privacy') liattrs='class="nav-menu__item--privacy"' ~%]
[%~ END ~%]
[%~ IF c.user_exists AND c.cobrand.admin_allow_user(c.user) ~%]
[%~ INCLUDE navitem uri='/admin' label=loc('Admin') ~%]
[%~ END ~%]
|