diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-03-17 17:34:13 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2014-03-25 13:13:30 +0000 |
commit | 87f54caa2618bbf873ac87b5b7bca04f7969d603 (patch) | |
tree | bebb27506a99e63529d213ad683672b8623c224d /templates | |
parent | 4db84e2b69378d6e26daa6ba460437d2e2c0d498 (diff) |
Allow cobrands to set their own path to pin files
New cobrand function of pin_path that sets the path to where the image
files for pins are located. Defaults to /i
This still means they need to use the same file names but they can at
least put those in a cobrand directory rather than having to overwrite
the files in /i or fudge it with pin_colour
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/default/maps/openlayers.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/web/default/maps/openlayers.html b/templates/web/default/maps/openlayers.html index 1ac32a717..7967d4480 100644 --- a/templates/web/default/maps/openlayers.html +++ b/templates/web/default/maps/openlayers.html @@ -18,6 +18,7 @@ var fixmystreet = { [% IF map.zoom -%] 'zoom': [% map.zoom %], [%- END %] + 'pin_prefix': '[% c.cobrand.path_to_pin_icons %]', 'numZoomLevels': [% map.numZoomLevels %], 'zoomOffset': [% map.zoomOffset %], 'map_type': [% map.map_type %], @@ -81,7 +82,7 @@ var fixmystreet = { [% IF pin.id %] <a title="[% pin.title | html %]" href="[% c.uri_for('/report/' _ pin.id) %]"> [%- END -%] -<img border="0" class="pin" src="[% c.uri_for('/i/pin-' _ pin.colour _ '.png') %]" +<img border="0" class="pin" src="[% c.uri_for( c.cobrand.path_to_pin_icons _ 'pin-' _ pin.colour _ '.png') %]" alt="[% loc('Problem') %]" style="top:[% pin.py - 64 %]px; left:[% pin.px - 24 %]px; position: absolute;"> [%- IF pin.id -%] </a> |