aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-09-12 09:43:01 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-09-12 09:43:01 +0100
commit7af16dbb365a55df9493174f24d5aa80792f3440 (patch)
treea2efb84b959f417e6311b6ec4b901305c249376c
parentafa937984e3b3213c2e7b6e3607deec5c83800db (diff)
Add logged in header to Fiksgatami.
-rw-r--r--templates/web/fiksgatami/header.html15
1 files changed, 12 insertions, 3 deletions
diff --git a/templates/web/fiksgatami/header.html b/templates/web/fiksgatami/header.html
index d53f4cb58..5449eff81 100644
--- a/templates/web/fiksgatami/header.html
+++ b/templates/web/fiksgatami/header.html
@@ -12,9 +12,18 @@
</head>
<body>
- <div id="header">
- <a href="/">[% loc('Fix<span id="my">My</span>Street') %]</a>
- </div>
+ [% IF NOT title AND NOT c.req.path %]<h1 id="header">[% ELSE %]<div id="header"><a href="/">[% END %]
+ [%- loc('Fix<span id="my">My</span>Street') %]
+ [%- IF NOT title AND NOT c.req.path %]</h1>[% ELSE %]</a></div>[% END %]
+
+ <ul id="meta">
+ [% IF c.user_exists %]
+ <li>[% tprintf(loc('Signed in as %s'), c.user.name || c.user.email) %]
+ <li><a href="/auth/sign_out">[% loc('Sign out') %]</a></li>
+ [% ELSE %]
+ <li>&nbsp;</li>
+ [% END %]
+ </ul>
<div id="wrapper"><div id="mysociety">