diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 11:49:33 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 11:49:33 +0100 |
commit | 2c8512b36c8a3c48d15e7243ca40e3947c2fc162 (patch) | |
tree | 5de224be837f6bb028b1ec882b2b99c6d008fc3c /templates | |
parent | 8111b9db1356cd10d1610b4ae1e99ea8054aad46 (diff) |
Move links under map to template.
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/web/default/around/display_location.html | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/templates/web/default/around/display_location.html b/templates/web/default/around/display_location.html index bbdc9aa92..58714f38e 100755 --- a/templates/web/default/around/display_location.html +++ b/templates/web/default/around/display_location.html @@ -39,8 +39,29 @@ <input type="hidden" name="map" value="[% c.req.params.map | html %]"> <input type="hidden" name="pc" value="[% pc | html %]"> [% c.cobrand.form_elements('mapForm') %] + [% map_html %] -[% map_links %] + +<p id='sub_map_links'> + [% IF c.req.params.no_pins %] + <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 0 } ) %]'>[% loc('Show pins') %]</a> + [% ELSE %] + <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 1 } ) %]'>[% loc('Hide pins') %]</a> + [% END %] + [% IF c.config.COUNTRY == 'GB' %] + | + [% IF c.req.params.all_pins %] + <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => undef } ) %]'>[% loc('Hide stale reports') %]</a> + [% ELSE %] + <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => 1 } ) %]'>[% loc('Include stale reports') %]</a> + [% END %] + [% END %] +</p> + +[% IF c.config.COUNTRY == 'GB' %] +<input type='hidden' id='all_pins' name='all_pins' value='[% all_pins | html %]'> +[% END %] + </div> <div id="side"> |