aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_general/stats.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin_general/stats.html.erb')
-rw-r--r--app/views/admin_general/stats.html.erb38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/views/admin_general/stats.html.erb b/app/views/admin_general/stats.html.erb
new file mode 100644
index 000000000..b22adb581
--- /dev/null
+++ b/app/views/admin_general/stats.html.erb
@@ -0,0 +1,38 @@
+<% @title = "Statistics" %>
+
+<h1>Statistics</h1>
+
+<h2>Chart of requests (excluding backpaged)</h2>
+
+<p>
+ <img src="<%= main_url("/foi-live-creation.png")%>">
+</p>
+
+<h2>State of requests (includes backpaged)</h2>
+
+<table>
+<% for state, count in @request_by_state %>
+<tr> <td><%=state %></td><td><%= count %></td> </tr>
+<% end %>
+</table>
+
+<h2>Chart of users</h2>
+
+<p>
+ <img src="<%= main_url("/foi-user-use.png")%>">
+</p>
+
+<h2>Tracks by type</h2>
+
+<table>
+<% for state, count in @tracks_by_type %>
+<tr> <td><%=state %></td><td><%= count %></td> </tr>
+<% end %>
+</table>
+
+<h2>Web analytics</h2>
+
+
+</p>
+
+