aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-11-14 12:52:50 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-11-15 15:57:39 +0000
commit979ec73bedd10aa8d0c07e17a53a2a2d8e517e6f (patch)
tree0e8af3354b560b8d490209829adc1b4ab7441c73
parent5846b85b117714041be38ae4a79c2a849aba73ae (diff)
Make sure map/front bodyclass available throughout page.
-rw-r--r--templates/web/base/admin/report_edit.html4
-rw-r--r--templates/web/base/around/index.html3
-rw-r--r--templates/web/base/around/lookup_by_ref.html3
-rw-r--r--templates/web/base/index.html3
-rw-r--r--templates/web/zurich/admin/report_edit-sdm.html4
-rw-r--r--templates/web/zurich/admin/report_edit.html4
-rwxr-xr-xtemplates/web/zurich/reports/index.html4
7 files changed, 14 insertions, 11 deletions
diff --git a/templates/web/base/admin/report_edit.html b/templates/web/base/admin/report_edit.html
index c58b2d605..ff99bb907 100644
--- a/templates/web/base/admin/report_edit.html
+++ b/templates/web/base/admin/report_edit.html
@@ -1,8 +1,8 @@
[%
PROCESS "maps/${map.type}.html" admin = 1;
+ SET bodyclass = 'mappage with-notes';
INCLUDE 'admin/header.html'
- title = tprintf(loc('Editing problem %d'), problem.id ),
- bodyclass = 'mappage with-notes';
+ title = tprintf(loc('Editing problem %d'), problem.id );
PROCESS 'admin/report_blocks.html'
-%]
diff --git a/templates/web/base/around/index.html b/templates/web/base/around/index.html
index f2be5575c..8f6af6225 100644
--- a/templates/web/base/around/index.html
+++ b/templates/web/base/around/index.html
@@ -1,5 +1,6 @@
[% pre_container_extra = INCLUDE 'around/postcode_form.html' %]
-[% INCLUDE 'header.html', title = loc('Reporting a problem'), bodyclass = 'frontpage fullwidthpage' %]
+[% SET bodyclass = 'frontpage fullwidthpage' ~%]
+[% INCLUDE 'header.html', title = loc('Reporting a problem') %]
[%
# NOTE ON PARTIAL REPORTS:
diff --git a/templates/web/base/around/lookup_by_ref.html b/templates/web/base/around/lookup_by_ref.html
index 5c08a7ceb..747354c1e 100644
--- a/templates/web/base/around/lookup_by_ref.html
+++ b/templates/web/base/around/lookup_by_ref.html
@@ -1,5 +1,6 @@
[% pre_container_extra = INCLUDE 'around/postcode_form.html', pc = ref %]
-[% INCLUDE 'header.html', title = loc('Reporting a problem'), bodyclass = 'frontpage fullwidthpage' %]
+[% SET bodyclass = 'frontpage fullwidthpage' ~%]
+[% INCLUDE 'header.html', title = loc('Reporting a problem') %]
[% IF matching_reports %]
<p>[% loc('We found more than one match for that problem reference:') %]</p>
diff --git a/templates/web/base/index.html b/templates/web/base/index.html
index 92c6b1eed..5a064ecb6 100644
--- a/templates/web/base/index.html
+++ b/templates/web/base/index.html
@@ -1,7 +1,8 @@
[% PROCESS 'front/javascript.html' %]
[% pre_container_extra = PROCESS 'around/postcode_form.html' %]
-[% INCLUDE 'header.html', title = '', bodyclass = 'frontpage fullwidthpage' inline_css = 1 %]
+[% SET bodyclass = 'frontpage fullwidthpage' %]
+[% INCLUDE 'header.html', title = '', inline_css = 1 %]
[% IF error %]
<p class="form-error">[% error %]</p>
diff --git a/templates/web/zurich/admin/report_edit-sdm.html b/templates/web/zurich/admin/report_edit-sdm.html
index 9f5433d8b..07fc9ad36 100644
--- a/templates/web/zurich/admin/report_edit-sdm.html
+++ b/templates/web/zurich/admin/report_edit-sdm.html
@@ -1,9 +1,9 @@
[%
PROCESS "report/photo-js.html";
PROCESS "maps/zurich.html";
+ SET bodyclass = 'mappage';
PROCESS 'admin/header.html'
- title = tprintf(loc('Editing problem %d'), problem.id ),
- bodyclass = 'mappage';
+ title = tprintf(loc('Editing problem %d'), problem.id );
PROCESS 'admin/report_blocks.html'
-%]
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index aa5029eb7..7e88fab30 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -1,9 +1,9 @@
[%
PROCESS "report/photo-js.html";
PROCESS "maps/zurich.html";
+ SET bodyclass = 'mappage';
INCLUDE 'admin/header.html'
- title = tprintf(loc('Editing problem %d'), problem.id ),
- bodyclass = 'mappage';
+ title = tprintf(loc('Editing problem %d'), problem.id );
PROCESS 'admin/report_blocks.html'
-%]
diff --git a/templates/web/zurich/reports/index.html b/templates/web/zurich/reports/index.html
index 8bec64c86..1389c666c 100755
--- a/templates/web/zurich/reports/index.html
+++ b/templates/web/zurich/reports/index.html
@@ -1,8 +1,8 @@
[%
PROCESS "maps/${map.type}.html";
+ SET bodyclass = 'mappage';
INCLUDE 'header.html',
- title = loc('Summary reports'),
- bodyclass = 'mappage';
+ title = loc('Summary reports');
%]
[% map_html %]
</div>