aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/hounslow
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/hounslow')
-rw-r--r--templates/web/hounslow/about/mapterms.html2
-rw-r--r--templates/web/hounslow/footer_extra_js.html2
-rw-r--r--templates/web/hounslow/front/stats.html40
-rw-r--r--templates/web/hounslow/report/_council_sent_info.html2
-rw-r--r--templates/web/hounslow/reports/_body_name.html1
5 files changed, 44 insertions, 3 deletions
diff --git a/templates/web/hounslow/about/mapterms.html b/templates/web/hounslow/about/mapterms.html
index 04c0aeb09..fe08dcdd1 100644
--- a/templates/web/hounslow/about/mapterms.html
+++ b/templates/web/hounslow/about/mapterms.html
@@ -8,7 +8,7 @@
<li>
I. You are granted a non-exclusive, royalty free revocable licence
solely to view the licensed data for non-commercial purposes for the
- period during which mySociety Ltd. makes it available;
+ period during which SocietyWorks Ltd. makes it available;
</li>
<li>
II. You are not permitted to copy, sub-license, distribute, sell or
diff --git a/templates/web/hounslow/footer_extra_js.html b/templates/web/hounslow/footer_extra_js.html
index 081ec3a12..84531dee6 100644
--- a/templates/web/hounslow/footer_extra_js.html
+++ b/templates/web/hounslow/footer_extra_js.html
@@ -1,4 +1,4 @@
-[% PROCESS 'footer_extra_js_base.html' highways=1 cobrand_js=1 validation=1 tfl=1 %]
+[% PROCESS 'footer_extra_js_base.html' highways=1 cobrand_js=1 validation=1 tfl=1 roadworks=1 %]
[%
IF bodyclass.match('mappage');
scripts.push(
diff --git a/templates/web/hounslow/front/stats.html b/templates/web/hounslow/front/stats.html
new file mode 100644
index 000000000..23d035551
--- /dev/null
+++ b/templates/web/hounslow/front/stats.html
@@ -0,0 +1,40 @@
+[% USE Number.Format %]
+
+[%
+ stats = c.cobrand.front_stats_data();
+
+ new_text =
+ stats.recency == '1 week'
+ ? nget(
+ "<big>%s</big> report in past week",
+ "<big>%s</big> reports in past week",
+ stats.new
+ )
+ : nget(
+ "<big>%s</big> report recently",
+ "<big>%s</big> reports recently",
+ stats.new
+ );
+
+ completed_text = nget(
+ "<big>%s</big> completed in past month",
+ "<big>%s</big> completed in past month",
+ stats.completed
+ );
+
+ updates_text = nget(
+ "<big>%s</big> update on reports",
+ "<big>%s</big> updates on reports",
+ stats.updates
+ );
+
+ new_n = stats.new | format_number;
+ completed_n = stats.completed | format_number;
+ updates_n = stats.updates | format_number;
+%]
+
+<div id="front_stats">
+ <div>[% tprintf( new_text, decode(new_n) ) %]</div>
+ <div>[% tprintf( completed_text, decode(completed_n) ) %]</div>
+ <div>[% tprintf( updates_text, decode(updates_n) ) %]</div>
+</div>
diff --git a/templates/web/hounslow/report/_council_sent_info.html b/templates/web/hounslow/report/_council_sent_info.html
index 921f17f5f..97a7c4ca5 100644
--- a/templates/web/hounslow/report/_council_sent_info.html
+++ b/templates/web/hounslow/report/_council_sent_info.html
@@ -1,5 +1,5 @@
[% SET can_display_external_id = problem.external_id AND c.user_exists AND c.user.belongs_to_body(problem.bodies_str) %]
-[% SET duration_clause = problem.duration_string(c) %]
+[% SET duration_clause = problem.duration_string %]
[% IF duration_clause || can_display_external_id %]
<p class="council_sent_info">
[% duration_clause %]
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