aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/base/reports/_body_name.html1
-rwxr-xr-xtemplates/web/base/reports/body.html7
-rw-r--r--templates/web/hounslow/reports/_body_name.html1
-rw-r--r--templates/web/isleofwight/reports/_body_name.html1
4 files changed, 4 insertions, 6 deletions
diff --git a/templates/web/base/reports/_body_name.html b/templates/web/base/reports/_body_name.html
new file mode 100644
index 000000000..42392e4cd
--- /dev/null
+++ b/templates/web/base/reports/_body_name.html
@@ -0,0 +1 @@
+[% body.name %]
diff --git a/templates/web/base/reports/body.html b/templates/web/base/reports/body.html
index d723a7992..d6f9558a3 100755
--- a/templates/web/base/reports/body.html
+++ b/templates/web/base/reports/body.html
@@ -1,9 +1,4 @@
-[% SET body_name = body.name %]
-[% IF c.cobrand.moniker == 'hounslow' %]
- [% SET body_name = 'Hounslow Highways' %]
-[% ELSIF c.cobrand.moniker == 'isleofwight' %]
- [% SET body_name = 'Island Roads' %]
-[% END %]
+[% body_name = PROCESS 'reports/_body_name.html' | trim %]
[% IF ward %]
[% name = "$ward.name, $body_name"
diff --git a/templates/web/hounslow/reports/_body_name.html b/templates/web/hounslow/reports/_body_name.html
new file mode 100644
index 000000000..6cb43da82
--- /dev/null
+++ b/templates/web/hounslow/reports/_body_name.html
@@ -0,0 +1 @@
+Hounslow Highways
diff --git a/templates/web/isleofwight/reports/_body_name.html b/templates/web/isleofwight/reports/_body_name.html
new file mode 100644
index 000000000..764623032
--- /dev/null
+++ b/templates/web/isleofwight/reports/_body_name.html
@@ -0,0 +1 @@
+Island Roads