aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/footer.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default/footer.html')
-rw-r--r--templates/web/default/footer.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/web/default/footer.html b/templates/web/default/footer.html
index 6271036d2..089eb1cb7 100644
--- a/templates/web/default/footer.html
+++ b/templates/web/default/footer.html
@@ -3,11 +3,16 @@
<div id="navigation" class="container" role="navigation">
<div class="spacer"></div>
<ul id="site-nav" class="nav">
- <li><a href="/">[% loc("Report a problem") %]</a></li>[%
- %]<li><a href="/my">[% loc("Your reports") %]</a></li>[%
- %]<li><a href="/reports">[% loc("All reports") %]</a></li>[%
- %]<li><a href="/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]">[% loc("Local alerts") %]</a></li>[%
- %]<li><a href="/faq">[% loc("Help") %]</a></li>
+ <li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END
+ %]>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
+ %]>[% loc("Your reports") %]</[% c.req.uri.path == '/my' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/reports' %]span[% ELSE %]a href="/reports"[% END
+ %]>[% loc("All reports") %]</[% c.req.uri.path == '/reports' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/alert' %]span[% ELSE %]a href="/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="/faq"[% END
+ %]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>
</ul>
<ul id="mysociety-nav" class="nav">