aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-01 15:00:59 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-01 15:00:59 +0100
commitea47736c4e5b8dc2eb72aaefb2aa0ea7d1ffc406 (patch)
tree9901f6afe683e5f15b15f66423faaf6e6d66a2d5
parentb02621771ab51fa7c2d3892c9e054956d9acf71e (diff)
Highlight Your reports when on auth page for it.
-rw-r--r--templates/web/bromley/header.html4
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/web/bromley/header.html b/templates/web/bromley/header.html
index 50b0f8fa1..a089853b1 100644
--- a/templates/web/bromley/header.html
+++ b/templates/web/bromley/header.html
@@ -55,8 +55,8 @@
<ul>
<li class="home"><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% "Report" %]</[% 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 == '/my' OR ( c.req.uri.path == '/auth' AND c.req.params.r == 'my' ) %]span[% ELSE %]a href="/my"[% END
+ %]>[% loc("Your reports") %]</[% ( c.req.uri.path == '/my' OR ( c.req.uri.path == '/auth' AND c.req.params.r == 'my' ) ) ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/reports/Bromley' %]span[% ELSE %]a href="/reports/Bromley"[% 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
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index b674020b1..f65d8083a 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -143,7 +143,7 @@ $(function(){
// Remove full-screen-ness
var banner_text;
if (cobrand == 'bromley') {
- banner_text = 'Click map to report a problem<span>Yellow pins show existing reports</span>';
+ banner_text = 'Click map to report a problem<span>Pins show existing reports</span>';
} else {
$('#site-header').show();
banner_text = 'Click map to report a problem';