aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-07-01 13:38:33 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-07-01 13:38:33 +0100
commita010a31a65d6ff3da49d7d85b1dd5a9300c3c92d (patch)
treed5aa0b5db28ea8e9d6b6f90bed52b6b5007cf110
parent2611f65707cff0416e59360d64d26c298881103d (diff)
Fix links not working on All Reports pages (c is special).
-rw-r--r--templates/web/default/maps/pins_js.html2
-rwxr-xr-xtemplates/web/default/reports/council.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/web/default/maps/pins_js.html b/templates/web/default/maps/pins_js.html
index 08941affc..d6d750390 100644
--- a/templates/web/default/maps/pins_js.html
+++ b/templates/web/default/maps/pins_js.html
@@ -1,4 +1,4 @@
[ [% FOR pin IN map.pins -%]
- [ [% pin.latitude %], [% pin.longitude %], '[% pin.colour %]', '[% pin.id %]', '[% pin.title.replace("'", "\\'") %]' ]
+ [ [% pin.latitude %], [% pin.longitude %], '[% pin.colour %]', '[% pin.id %]', "[% pin.title | html %]" ]
[%- IF !loop.last %],[% END %]
[% END %] ]
diff --git a/templates/web/default/reports/council.html b/templates/web/default/reports/council.html
index d2578f9f2..6d21d9f17 100755
--- a/templates/web/default/reports/council.html
+++ b/templates/web/default/reports/council.html
@@ -22,8 +22,8 @@
<h2 style="clear:right">[% loc('Wards of this council') %]</h2>
<p>[% loc('Follow a ward link to view only reports within that ward.') %]</p>
<ul>
-[% FOR c IN children.values.sort('name') %]
-<li><a href="[% c.url %]">[% c.name %]</a></p>
+[% FOR child IN children.values.sort('name') %]
+<li><a href="[% child.url %]">[% child.name %]</a></p>
[% END %]
</ul>
[% END %]