aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2014-09-09 17:07:50 +0100
committerMatthew Somerville <matthew@mysociety.org>2014-09-24 22:06:41 +0100
commit68a36aa14bfd9e236fc2cdf77b370bdc0cc9cf4d (patch)
tree4706d21a176d54c641c0aef7bfdfefd4ca17b840 /templates
parent37d38399a961476e2a8fc595282810f374f32802 (diff)
Fix display of user menu on map page.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/fixmystreet/header.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html
index 14dbf0ddc..3d69fbac6 100644
--- a/templates/web/fixmystreet/header.html
+++ b/templates/web/fixmystreet/header.html
@@ -26,7 +26,7 @@
<script src="[% start %][% version('/cobrands/fixmystreet/position_map.js') %]" charset="utf-8"></script>
[% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js', site_title = c.cobrand.site_title %]
[% extra_js %]
-
+
[% IF c.req.uri.host == 'osm.fixmystreet.com' %]
<link rel="canonical" href="https://www.fixmystreet.com[% c.req.uri.path_query %]">
[% END %]
@@ -46,16 +46,14 @@
</div>
</header>
+ [% IF c.user_exists %]
<div id="user-meta">
- [% IF c.user_exists %]
<p>
- [% tprintf(loc('Hi %s'), c.user.name || c.user.email) %]
+ [% tprintf(loc('Hi %s'), c.user.name || c.user.email) %]
<a href="/auth/sign_out">[% loc('sign out') %]</a>
</p>
- [% ELSE %]
- <!-- <a href="/auth">[% loc('Sign in') %]</a> -->
- [% END %]
</div>
+ [% END %]
[% pre_container_extra %]