diff options
Diffstat (limited to 'templates/web/base')
-rwxr-xr-x | templates/web/base/around/display_location.html | 6 | ||||
-rw-r--r-- | templates/web/base/js/translation_strings.html | 3 | ||||
-rw-r--r-- | templates/web/base/maps/google-ol.html | 10 |
3 files changed, 14 insertions, 5 deletions
diff --git a/templates/web/base/around/display_location.html b/templates/web/base/around/display_location.html index dbe7d9ffd..804be9603 100755 --- a/templates/web/base/around/display_location.html +++ b/templates/web/base/around/display_location.html @@ -27,7 +27,7 @@ } ); - PROCESS "maps/${map.type}.html"; + PROCESS "maps/${map.type}.html" around_page = 1; SET bodyclass = 'mappage'; SET rss = [ loc('Recent local problems, FixMyStreet'), rss_url ] IF c.cobrand.moniker != 'emptyhomes'; @@ -53,9 +53,7 @@ [% IF c.cobrand.moniker != 'emptyhomes' %] <p id='sub_map_links'> - [% IF c.cobrand.moniker == 'zurich' %] - <a class="hidden-nojs" id="map_layer_toggle" href="">Stadtplan</a> - [% END %] + [% map_sub_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 %] diff --git a/templates/web/base/js/translation_strings.html b/templates/web/base/js/translation_strings.html index a14443b71..669055a1b 100644 --- a/templates/web/base/js/translation_strings.html +++ b/templates/web/base/js/translation_strings.html @@ -42,6 +42,9 @@ ok: '[% loc('OK') | replace("'", "\\'") %]', map: '[% loc('MAP') | replace("'", "\\'") %]', + map_map: '[% loc('Map') | replace("'", "\\'") %]', + map_satellite: '[% loc('Satellite') | replace("'", "\\'") %]', + permalink: '[% loc('Permalink') | replace("'", "\\'") %]', report_problem_heading: '[% loc('Click map to report a problem') | replace("'", "\\'") %]' diff --git a/templates/web/base/maps/google-ol.html b/templates/web/base/maps/google-ol.html index 35c046b55..919ae073f 100644 --- a/templates/web/base/maps/google-ol.html +++ b/templates/web/base/maps/google-ol.html @@ -9,7 +9,15 @@ <![endif]--> [% END %] +[% map_sub_links = BLOCK %] +<a class="hidden-nojs" id="map_layer_toggle" href="">[% loc('Satellite') %]</a> +[% END %] + [% map_html = BLOCK %] [% INCLUDE maps/openlayers.html %] +[% UNLESS around_page %] +<p id="sub_map_links"> + [% map_sub_links %] +</p> +[% END %] [% END %] - |