diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-24 14:01:49 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-24 14:01:49 +0000 |
commit | 13098b6381416919b3e36fc3f558ca50f58fa854 (patch) | |
tree | 581dfabca1440b24aec90d01addb4ba1d95aa050 /web/index.cgi | |
parent | b54248ad8055afaf33fed2f7e51f88c6833047b2 (diff) |
No need for all pins yet (does nothing <6 months), hide pins using OL JS if present; permalink.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-x | web/index.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index 8fab1d079..ed5b285c2 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -929,7 +929,12 @@ sub display_location { $hide_link = NewURL($q, -retain=>1, no_pins=>1); $hide_text = _('Hide pins'); } - my $map_links = "<p id='sub_map_links'><a id='hide_pins_link' rel='nofollow' href='$hide_link'>$hide_text</a> | <a id='all_pins_link' rel='nofollow' href='$all_link'>$all_text</a></p> <input type='hidden' id='all_pins' name='all_pins' value='$input_h{all_pins}'>"; + my $map_links = "<p id='sub_map_links'><a id='hide_pins_link' rel='nofollow' href='$hide_link'>$hide_text</a>"; + if (mySociety::Config::get('COUNTRY') eq 'GB') { + $map_links .= " | <a id='all_pins_link' rel='nofollow' href='$all_link'>$all_text</a></p> <input type='hidden' id='all_pins' name='all_pins' value='$input_h{all_pins}'>"; + } else { + $map_links .= "</p>"; + } # truncate the lat,lon for nicer rss urls my ( $short_lat, $short_lon ) = |