aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-11-17 16:08:22 +0000
committerfrancis <francis>2008-11-17 16:08:22 +0000
commit3b66bbfc482dfb92ca1c40b5dd6c15cdf9f631cf (patch)
treebfcc0ebc22b733e92d6c172ea1ed02b81363ad52
parent240e0b1533d3905359e2ad89eebd1acf6368f92a (diff)
Remove tracks by medium display in admin.
-rw-r--r--app/controllers/admin_controller.rb3
-rw-r--r--app/views/admin/stats.rhtml13
2 files changed, 4 insertions, 12 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 9091cb008..aa3341e8e 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: admin_controller.rb,v 1.21 2008-09-11 10:37:37 francis Exp $
+# $Id: admin_controller.rb,v 1.22 2008-11-17 16:08:22 francis Exp $
class AdminController < ApplicationController
layout "admin"
@@ -56,7 +56,6 @@ class AdminController < ApplicationController
def stats
@request_by_state = InfoRequest.count(:group => 'described_state')
@tracks_by_type = TrackThing.count(:group => 'track_type')
- @tracks_by_medium = TrackThing.count(:group => 'track_medium')
end
def debug
diff --git a/app/views/admin/stats.rhtml b/app/views/admin/stats.rhtml
index 2a7cffb6d..9aca960d1 100644
--- a/app/views/admin/stats.rhtml
+++ b/app/views/admin/stats.rhtml
@@ -4,7 +4,9 @@
<h2>Chart of requests (excluding backpaged)</h2>
-<img src="<%= main_url("/foi-live-creation.png")%>">
+<p>
+ <img src="<%= main_url("/foi-live-creation.png")%>">
+</p>
<h2>State of requests (includes backpaged)</h2>
@@ -22,12 +24,3 @@
<% 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>
-
-