aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/admin/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default/admin/index.html')
-rw-r--r--templates/web/default/admin/index.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/web/default/admin/index.html b/templates/web/default/admin/index.html
new file mode 100644
index 000000000..277d2ea76
--- /dev/null
+++ b/templates/web/default/admin/index.html
@@ -0,0 +1,31 @@
+[% INCLUDE 'admin/header.html' title=loc('Summary') %]
+
+[% BLOCK states %]
+<h2>[% title %]</h2>
+
+[% FOREACH state IN object.keys.sort %]
+[% '<ul>' IF loop.first %]
+ <li>[% object.$state %] [% state %]</li>
+[% '</ul>' IF loop.last %]
+[% END %]
+[% END %]
+
+<ul>
+ <li>[% tprintf( loc('<strong>%d</strong> live problems'), total_problems_live ) %]</li>
+ <li>[% tprintf( loc('%d live updates'), comments.confirmed ) %]</li>
+ <li>[% tprintf( loc('%d confirmed alerts, %d unconfirmed'), alerts.1, alerts.0) %]</li>
+ <li>[% tprintf( loc('%d questionnaires sent &ndash; %d answered (%s%%)'), questionnaires.total, questionnaires.1, questionnaires_pc) %]</li>
+ <li>[% tprintf( loc('%d council contacts &ndash; %d confirmed, %d unconfirmed'), contacts.total, contacts.1, contacts.0) %]</li>
+</ul>
+
+[% IF c.cobrand.admin_show_creation_graph %]
+ <p>
+ <a href="">[% loc('Graph of problem creation by status over time') %]</a>
+ </p>
+[% END %]
+
+[% PROCESS states title=loc('Problem breakdown by state') object=problems %]</h2>
+
+[% PROCESS states title=loc('Update breakdown by state') object=comments %]</h2>
+
+[% INCLUDE 'admin/footer.html' %]