aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/report
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default/report')
-rw-r--r--templates/web/default/report/display.html4
-rw-r--r--templates/web/default/report/new/fill_in_details.html7
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 %]