blob: cbb26fee17da9e54019b53ef180c942edbb9ca16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>
|