diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-19 14:59:44 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-08-22 10:36:01 +0100 |
commit | c7adf92943d28aae3d328871a89c745434c85c38 (patch) | |
tree | c77153734661e03568a55ac358b2674e3329c45d | |
parent | bbb067ec5ddc88862be50819076bfe63c744122e (diff) |
[Oxfordshire] Add planned reports link to navigation.
-rw-r--r-- | templates/web/oxfordshire/header.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/web/oxfordshire/header.html b/templates/web/oxfordshire/header.html index 6878f491a..e347c8677 100644 --- a/templates/web/oxfordshire/header.html +++ b/templates/web/oxfordshire/header.html @@ -42,6 +42,12 @@ <[% IF c.req.uri.path == '/my' OR ( c.req.uri.path == '/auth' AND c.req.params.r == 'my' ) %]span[% ELSE %]a href="/my"[% END %]>[% c.user_exists ? loc("Your account") : loc("Sign in") %]</[% ( c.req.uri.path == '/my' OR ( c.req.uri.path == '/auth' AND c.req.params.r == 'my' ) ) ? 'span' : 'a' %]> </li> + [% IF c.user_exists AND c.user.has_permission_to('planned_reports', c.user.from_body.id) %] + <li> + <[% IF c.req.uri.path == '/my/planned' %]span[% ELSE %]a href="/my/planned"[% END + %]>[% loc('Planned reports') %]</[% c.req.uri.path == '/my/planned' ? 'span' : 'a' %]> + </li> + [% END %] <li> <[% IF c.req.uri.path == '/reports/Oxfordshire' %]span[% ELSE %]a href="/reports/Oxfordshire"[% END %]>[% loc("All reports") %]</[% c.req.uri.path == '/reports' ? 'span' : 'a' %]> |