aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/admin
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default/admin')
-rw-r--r--templates/web/default/admin/footer.html2
-rw-r--r--templates/web/default/admin/header.html17
-rw-r--r--templates/web/default/admin/index.html33
3 files changed, 52 insertions, 0 deletions
diff --git a/templates/web/default/admin/footer.html b/templates/web/default/admin/footer.html
new file mode 100644
index 000000000..308b1d01b
--- /dev/null
+++ b/templates/web/default/admin/footer.html
@@ -0,0 +1,2 @@
+</body>
+</html>
diff --git a/templates/web/default/admin/header.html b/templates/web/default/admin/header.html
new file mode 100644
index 000000000..5db365a2a
--- /dev/null
+++ b/templates/web/default/admin/header.html
@@ -0,0 +1,17 @@
+<html>
+<head>
+<title>[% title %] - [% loc('FixMyStreet administration') %]</title>
+<style type="text/css">
+dt { clear: left; float: left; font-weight: bold; }
+dd { margin-left: 8em; }
+.hidden { color: #666666; }
+</style>
+</head>
+<body>
+
+ <strong>[% loc('FixMyStreet admin:') %]</strong>
+ <a href="">[% loc('Summary') %]</a>
+ <a href="">[% loc('Council contacts') %]</a>
+ <a href="">[% loc('Search Reports') %]</a>
+ <a href="">[% loc('Timeline') %]</a>
+ <a href="">[% loc('Survey Results') %]</a>
diff --git a/templates/web/default/admin/index.html b/templates/web/default/admin/index.html
new file mode 100644
index 000000000..ddc822b22
--- /dev/null
+++ b/templates/web/default/admin/index.html
@@ -0,0 +1,33 @@
+[% 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 %]
+
+<h1>Summary</h1>
+
+<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' %]