aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2011-10-28 11:44:14 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2011-10-28 11:44:14 +0100
commit3580be7ce449a9763a7430cdba19e7849e1c5cce (patch)
tree6a1df494e1a8264e7b6b880704f24caf02c66fbe
parent217ebae11d06bc25a20ee60b804977fcd81d17a9 (diff)
Remove update stat from EHA front page.
-rw-r--r--templates/web/emptyhomes/front/stats.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/web/emptyhomes/front/stats.html b/templates/web/emptyhomes/front/stats.html
new file mode 100644
index 000000000..cbb26fee1
--- /dev/null
+++ b/templates/web/emptyhomes/front/stats.html
@@ -0,0 +1,27 @@
+[%
+ USE Comma;
+ # Note - if we want to i18n the commas we should try
+ # 'Template::Plugin::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
+ );
+
+%]
+
+<div id="front_stats">
+ <div>[% tprintf( new_text, stats.new ) | comma %]</div>
+</div>