diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-07-07 16:59:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-07-08 17:59:17 +0100 |
commit | ba8d2c4ba6f6c0216d618e77d368b640a2b92d1e (patch) | |
tree | 8b9e1a960f91c006606b5e0767a84a400dfc2fb0 /templates/web/base/front | |
parent | 8f2c5942e3aa5d3b85e76b7353ab7ada87f97fc6 (diff) |
Rename 'default' web directory to 'base'.
This should reduce confusion with the Default cobrand and override order.
Diffstat (limited to 'templates/web/base/front')
-rw-r--r-- | templates/web/base/front/international_banner.html | 0 | ||||
-rw-r--r-- | templates/web/base/front/stats.html | 43 |
2 files changed, 43 insertions, 0 deletions
diff --git a/templates/web/base/front/international_banner.html b/templates/web/base/front/international_banner.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/web/base/front/international_banner.html diff --git a/templates/web/base/front/stats.html b/templates/web/base/front/stats.html new file mode 100644 index 000000000..5367f1118 --- /dev/null +++ b/templates/web/base/front/stats.html @@ -0,0 +1,43 @@ +[% + 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 + ); + + fixed_text = nget( + "<big>%s</big> fixed in past month", + "<big>%s</big> fixed in past month", + stats.fixed + ); + + updates_text = nget( + "<big>%s</big> update on reports", + "<big>%s</big> updates on reports", + stats.updates + ); + +%] + +<div id="front_stats"> + <div>[% tprintf( new_text, stats.new ) | comma %]</div> + <div>[% tprintf( fixed_text, stats.fixed ) | comma %]</div> + [% IF c.cobrand.moniker != 'zurich' %] + <div>[% tprintf( updates_text, stats.updates ) | comma %]</div> + [% END %] +</div> |