aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-12-18 18:52:34 +0000
committerMatthew Somerville <matthew@mysociety.org>2015-12-18 18:52:34 +0000
commitc74b7286cdd213f38b5e9a816bb4dc9ba2611170 (patch)
treed7d61954a62c03666d724ac69ace1ce6bed96f69 /templates
parent195c7c7b6e03a3ec9cf7fcd22c7fbf0cba90c749 (diff)
Fix display of large numbers on HTML status page.
6a70b829 prettified the numbers, so they were now strings, but mistakingly kept the printf tokens as "%d".
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/status/stats.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/web/base/status/stats.html b/templates/web/base/status/stats.html
index 77c316f12..9cc250dcb 100644
--- a/templates/web/base/status/stats.html
+++ b/templates/web/base/status/stats.html
@@ -15,14 +15,14 @@
-%]
<ul>
- <li>[% tprintf( loc('<strong>%d</strong> live problems'), decode(total_problems_live) ) %]
+ <li>[% tprintf( loc('<strong>%s</strong> live problems'), decode(total_problems_live) ) %]
[% IF admin_include_users %]
- [% tprintf( loc('from %d different users'), decode(total_problems_users) ) %]
+ [% tprintf( loc('from %s different users'), decode(total_problems_users) ) %]
[% END %]
</li>
- <li>[% tprintf( loc('%d live updates'), decode(comments_confirmed) ) %]</li>
- <li>[% tprintf( loc('%d confirmed alerts, %d unconfirmed'), decode(alerts_1), decode(alerts_0)) %]</li>
- <li>[% tprintf( loc('%d questionnaires sent &ndash; %d answered (%s%%)'), decode(questionnaires_total), decode(questionnaires_1), questionnaires_pc) %]</li>
- <li>[% tprintf( '%d bodies', decode(total_bodies)) %],
- [% tprintf( loc('%d council contacts &ndash; %d confirmed, %d unconfirmed'), decode(contacts_total), decode(contacts_1), decode(contacts_0)) %]</li>
+ <li>[% tprintf( loc('%s live updates'), decode(comments_confirmed) ) %]</li>
+ <li>[% tprintf( loc('%s confirmed alerts, %s unconfirmed'), decode(alerts_1), decode(alerts_0)) %]</li>
+ <li>[% tprintf( loc('%s questionnaires sent &ndash; %s answered (%s%%)'), decode(questionnaires_total), decode(questionnaires_1), questionnaires_pc) %]</li>
+ <li>[% tprintf( loc('%s bodies'), decode(total_bodies)) %],
+ [% tprintf( loc('%s council contacts &ndash; %s confirmed, %s unconfirmed'), decode(contacts_total), decode(contacts_1), decode(contacts_0)) %]</li>
</ul>