aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-05 12:36:02 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-05 12:36:02 +0000
commit259a12dc44f6571b9800b639a7031920f74288f7 (patch)
tree1a24fa8cfa350a4822d587cf54216817f623b410
parentf5024685e425570e1e4b49449b4ddce9d1e75cfa (diff)
On Zurich mobile, have navigation link to same page move to top (fixes a19).
-rw-r--r--templates/web/zurich/footer.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/web/zurich/footer.html b/templates/web/zurich/footer.html
index 2cda6c2d9..431b0f12a 100644
--- a/templates/web/zurich/footer.html
+++ b/templates/web/zurich/footer.html
@@ -11,16 +11,15 @@
[% tprintf(loc('Hi %s'), c.user.name || c.user.email) %]
</p><p><a href="/admin">[% loc('Summary') %]</a> | <a href="/auth/sign_out">[% loc('sign out') %]</a>
</p>
- [% ELSE %]
+ [% END %]
<ul id="main-menu" class="mob-only">
- <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 == '/' %]a onclick="$('html, body').animate({scrollTop:0}, 500); return false;" href="#site-header"[% ELSE %]a href="/"[% END %]
+ >[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'a' : '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 == '/faq' %]span[% ELSE %]a href="/faq"[% END
%]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>
</ul>
- [% END %]
</div>
</div>
</div>