diff options
Diffstat (limited to 'templates/web/hounslow/front/stats.html')
-rw-r--r-- | templates/web/hounslow/front/stats.html | 40 |
1 files changed, 40 insertions, 0 deletions
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> |