aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-25 16:43:40 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-25 16:43:40 +0100
commitd974cc0258d26a366262bce7b456d39b0c71a40b (patch)
tree03534cbf86dcf83a36df3839ff49e70cbf458b5b /templates
parent6a679dbe9f0d7021f176ca23106a74bc2475539e (diff)
parentc5ace4f09cb6a31942a4be688f883ca141ca6649 (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'templates')
-rw-r--r--templates/web/default/around/around_index.html2
-rw-r--r--templates/web/default/maps/osm.html14
-rw-r--r--templates/web/default/maps/tilma/original.html2
-rw-r--r--templates/web/default/report/display.html2
4 files changed, 10 insertions, 10 deletions
diff --git a/templates/web/default/around/around_index.html b/templates/web/default/around/around_index.html
index 38d692db2..8c144e469 100644
--- a/templates/web/default/around/around_index.html
+++ b/templates/web/default/around/around_index.html
@@ -33,7 +33,7 @@
<p>[% loc('We found more than one match for that location. We show up to ten matches, please try a different search if yours is not here.') %]</p>
<ul class="pc_alternatives">
[% FOREACH match IN possible_location_matches %]
- <li><a href="/?pc=[% match | uri %]">[% match | html %]</a></li>
+ <li><a href="/around?pc=[% match | uri %]">[% match | html %]</a></li>
[% END %]
</ul>
[% END %]
diff --git a/templates/web/default/maps/osm.html b/templates/web/default/maps/osm.html
index 4c1c23166..5f8336c52 100644
--- a/templates/web/default/maps/osm.html
+++ b/templates/web/default/maps/osm.html
@@ -11,7 +11,7 @@ var fixmystreet = {
'longitude': [% map.longitude %],
'pins': [
[% FOR pin IN map.pins -%]
- [ [% pin.lat %], [% pin.lon %], '[% pin.col %]', '[% pin.id %]', '[% pin.title %]' ]
+ [ [% pin.latitude %], [% pin.longitude %], '[% pin.colour %]', '[% pin.id %]', '[% pin.title %]' ]
[%- IF !loop.last %],[% END %]
[% END %] ],
'map_type': [% map.map_type %]
@@ -23,25 +23,25 @@ var fixmystreet = {
<div id="drag"><[% map.img_type %]
alt="NW map tile" id="t2.2"
name="tile_[% map.x_tile - 1 %].[% map.y_tile - 1 %]"
- src="http://a.tile.openstreetmap.org/[% map.zoom_act %]/[% map.x_tile - 1 %]/[% map.y_tile - 1 %].png"
+ src="http://a.[% map.tile_url %]/[% map.zoom_act %]/[% map.x_tile - 1 %]/[% map.y_tile - 1 %].png"
style="top:0; left:0;"><[% map.img_type %]
alt="NE map tile" id="t2.3"
name="tile_[% map.x_tile %].[% map.y_tile - 1 %]"
- src="http://b.tile.openstreetmap.org/[% map.zoom_act %]/[% map.x_tile %]/[% map.y_tile - 1 %].png"
+ src="http://b.[% map.tile_url %]/[% map.zoom_act %]/[% map.x_tile %]/[% map.y_tile - 1 %].png"
style="top:0px; left:256px;"><br><[% map.img_type %]
alt="SW map tile" id="t3.2"
name="tile_[% map.x_tile - 1 %].[% map.y_tile %]"
- src="http://c.tile.openstreetmap.org/[% map.zoom_act %]/[% map.x_tile - 1 %]/[% map.y_tile %].png"
+ src="http://c.[% map.tile_url %]/[% map.zoom_act %]/[% map.x_tile - 1 %]/[% map.y_tile %].png"
style="top:256px; left:0;"><[% map.img_type %]
alt="SE map tile" id="t3.3"
name="tile_[% map.x_tile %].[% map.y_tile %]"
- src="http://tile.openstreetmap.org/[% map.zoom_act %]/[% map.x_tile %]/[% map.y_tile %].png"
+ src="http://[% map.tile_url %]/[% map.zoom_act %]/[% map.x_tile %]/[% map.y_tile %].png"
style="top:256px; left:256px;"></div>
<div id="pins">[% FOR pin IN map.pins %][% INCLUDE pin %][% END %]</div>
[% INCLUDE compass %]
</noscript></div>
<p id="copyright">
- [% loc('Map &copy; <a id="osm_link" href="http://www.openstreetmap.org/">OpenStreetMap</a> and contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>') %]
+ [% map.copyright %]
</p>
@@ -78,7 +78,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' _ cols.${pin.col} _ '.gif') %]"
+<img border="0" class="pin" src="[% c.uri_for('/i/pin' _ cols.${pin.colour} _ '.gif') %]"
alt="[% loc('Problem') %]" style="top:[% pin.py - 59 %]px; left:[% pin.px %]px; position: absolute;">
[%- IF pin.id -%]
</a>
diff --git a/templates/web/default/maps/tilma/original.html b/templates/web/default/maps/tilma/original.html
index 6e3c34a86..546e027dc 100644
--- a/templates/web/default/maps/tilma/original.html
+++ b/templates/web/default/maps/tilma/original.html
@@ -51,7 +51,7 @@ var fixmystreet = {
[% IF pin.id %]
<a title="[% pin.title | html %]" href="[% c.uri_for('/report/' _ pin.id) %]">
[%- END -%]
-<img class="pin" src="[% c.uri_for('/i/pin' _ cols.${pin.col} _ num _ '.gif') %]"
+<img class="pin" src="[% c.uri_for('/i/pin' _ cols.${pin.colour} _ num _ '.gif') %]"
alt="[% loc('Problem') %]" style="top:[% pin.py - 59 %]px; left:[% pin.px %]px; position: absolute;">
[%- IF pin.id -%]
</a>
diff --git a/templates/web/default/report/display.html b/templates/web/default/report/display.html
index 1461ffc39..ef51dca01 100644
--- a/templates/web/default/report/display.html
+++ b/templates/web/default/report/display.html
@@ -33,7 +33,7 @@
</p>
<p style="padding-bottom: 0.5em; border-bottom: dotted 1px #999999;" align="right">
- <a href="[% c.uri_for( '/', { lat => short_latitude, lon => short_longitude } ) %]">[% loc( 'More problems nearby' ) %]</a>
+ <a href="[% c.uri_for( '/around', { lat => short_latitude, lon => short_longitude } ) %]">[% loc( 'More problems nearby' ) %]</a>
</p>
<div id="alert_links">