diff options
Diffstat (limited to 'app/views/admin/stats.rhtml')
-rw-r--r-- | app/views/admin/stats.rhtml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/admin/stats.rhtml b/app/views/admin/stats.rhtml new file mode 100644 index 000000000..9bca62079 --- /dev/null +++ b/app/views/admin/stats.rhtml @@ -0,0 +1,29 @@ +<% @title = "Statistics" %> + +<h1>Statistics</h1> + +<h2>State of requests</h2> + +<table> +<% for state, count in @request_by_state %> +<tr> <td><%=state %></td><td><%= count %></td> </tr> +<% end %> +</table> + +<h2>Tracks by type</h2> + +<table> +<% for state, count in @tracks_by_type %> +<tr> <td><%=state %></td><td><%= count %></td> </tr> +<% end %> +</table> + +<h2>Tracks by medium</h2> + +<table> +<% for state, count in @tracks_by_medium %> +<tr> <td><%=state %></td><td><%= count %></td> </tr> +<% end %> +</table> + + |