diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-03-08 10:46:04 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-03-08 10:46:04 +0000 |
commit | ddc2fd59373c4210d6a9b1b9d41f487d5c4d0e72 (patch) | |
tree | b83c58e08cf1aa7f465b8d51b725dc511605f6bb /templates | |
parent | 488f9827d45e7930907f9310c76d43d1ddeb48ed (diff) |
Add link to /local from front page and around page.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/default/front/stats.html | 4 | ||||
-rw-r--r-- | templates/web/emptyhomes/around/extra_text.html | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/templates/web/default/front/stats.html b/templates/web/default/front/stats.html index eae66018b..fc8b9e99a 100644 --- a/templates/web/default/front/stats.html +++ b/templates/web/default/front/stats.html @@ -36,7 +36,9 @@ <div id="front_stats"> <div>[% tprintf( new_text, stats.new ) | comma %]</div> - [% IF c.cobrand.moniker != 'emptyhomes' %] + [% IF c.cobrand.moniker == 'emptyhomes' %] + <div><a href="/local/">Find latest local and national news</a></div> + [% ELSE %] <div>[% tprintf( fixed_text, stats.fixed ) | comma %]</div> [% IF c.cobrand.moniker != 'zurich' %] <div>[% tprintf( updates_text, stats.updates ) | comma %]</div> diff --git a/templates/web/emptyhomes/around/extra_text.html b/templates/web/emptyhomes/around/extra_text.html new file mode 100644 index 000000000..bb9d18d8e --- /dev/null +++ b/templates/web/emptyhomes/around/extra_text.html @@ -0,0 +1,9 @@ +[% +# Need to ignore any county council +FOR c IN all_areas.values; + SET council = c IF c.type != 'CTY'; +END; +%] +<a href="/local/[% c.cobrand.short_name(council) | lower %]"> + Find out local news and stats for [% council.name %] +</a> |