diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 11:57:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 11:57:21 +0100 |
commit | a04abdebaf280cbfbad65fabb2c64d88f9e3d72c (patch) | |
tree | 0adcfeb9a4e11737417eee488038b7894c9f50c2 /templates/web/default/report | |
parent | 45f6e7e798b203df12938c4b06976fa310173093 (diff) |
Get header JS <script> out of code and into templates.
Diffstat (limited to 'templates/web/default/report')
-rw-r--r-- | templates/web/default/report/display.html | 4 | ||||
-rw-r--r-- | templates/web/default/report/new/fill_in_details.html | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/templates/web/default/report/display.html b/templates/web/default/report/display.html index ef51dca01..05b594b7b 100644 --- a/templates/web/default/report/display.html +++ b/templates/web/default/report/display.html @@ -1,4 +1,6 @@ [% + PROCESS "maps/${map.type}.html"; + problem_title = problem.title | html; INCLUDE 'header.html' title = problem_title @@ -6,7 +8,7 @@ robots = 'index, nofollow' %] -[% INCLUDE "maps/${map.type}.html" %] +[% map_html %] [% IF c.config.COUNTRY == 'GB' %] <p id='sub_map_links'> diff --git a/templates/web/default/report/new/fill_in_details.html b/templates/web/default/report/new/fill_in_details.html index fcf08b884..00055c21b 100644 --- a/templates/web/default/report/new/fill_in_details.html +++ b/templates/web/default/report/new/fill_in_details.html @@ -1,4 +1,7 @@ -[% INCLUDE 'header.html', title => loc('Reporting a problem') %] +[% + PROCESS "maps/${map.type}.html" IF report.used_map; + INCLUDE 'header.html', title => loc('Reporting a problem') +%] [% IF report.used_map %] <form action="[% c.uri_for('/report/new') %]" method="post" name="mapForm" id="mapForm"[% IF c.cobrand.allow_photo_upload %] enctype="multipart/form-data"[% END %]> @@ -17,7 +20,7 @@ <input type="hidden" name="longitude" id="fixmystreet.longitude" value="[% short_longitude | html %]"> [% IF report.used_map %] - [% INCLUDE "maps/${map.type}.html" %] + [% map_html %] </div> <div id="side"> [% ELSE %] |