aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/front
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-03-28 20:38:28 +0200
committerMarius Halden <marius.h@lden.org>2016-03-28 20:38:28 +0200
commit6c1118dbf2c4b15bcfcd77600d36f2389428c75e (patch)
treeda81756a344a89502df5479b860b6f4a24b6ed92 /templates/web/base/front
parenta2d67ca6de255ff04badb7cb5a62f7d3df3ce293 (diff)
parent4345263c9de752454795ad57323e684e41e702a8 (diff)
Merge tag 'v1.8.1' into fiksgatami-dev
Diffstat (limited to 'templates/web/base/front')
-rw-r--r--templates/web/base/front/stats.html17
1 files changed, 8 insertions, 9 deletions
diff --git a/templates/web/base/front/stats.html b/templates/web/base/front/stats.html
index 5367f1118..eb671137b 100644
--- a/templates/web/base/front/stats.html
+++ b/templates/web/base/front/stats.html
@@ -1,8 +1,4 @@
-[%
- USE Comma;
- # Note - if we want to i18n the commas we should try
- # 'Template::Plugin::Number::Format'
-%]
+[% USE Number.Format %]
[%
stats = c.cobrand.front_stats_data();
@@ -31,13 +27,16 @@
"<big>%s</big> updates on reports",
stats.updates
);
-
+
+ new_n = stats.new | format_number;
+ fixed_n = stats.fixed | format_number;
+ updates_n = stats.updates | format_number;
%]
<div id="front_stats">
- <div>[% tprintf( new_text, stats.new ) | comma %]</div>
- <div>[% tprintf( fixed_text, stats.fixed ) | comma %]</div>
+ <div>[% tprintf( new_text, decode(new_n) ) %]</div>
+ <div>[% tprintf( fixed_text, decode(fixed_n) ) %]</div>
[% IF c.cobrand.moniker != 'zurich' %]
- <div>[% tprintf( updates_text, stats.updates ) | comma %]</div>
+ <div>[% tprintf( updates_text, decode(updates_n) ) %]</div>
[% END %]
</div>