aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_general_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-07-16 11:29:02 +0000
committerfrancis <francis>2009-07-16 11:29:02 +0000
commit8ccf208fd2717a1a24b8489a27822aa99dbd5593 (patch)
tree9d2409d8bd3648ac6473ed4c7e91911182f6fe2e /app/controllers/admin_general_controller.rb
parenta2bf24ad9fc33fcd2739466f61e3b73ccd5ebeb0 (diff)
Some shorter timelines.
Diffstat (limited to 'app/controllers/admin_general_controller.rb')
-rw-r--r--app/controllers/admin_general_controller.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controllers/admin_general_controller.rb b/app/controllers/admin_general_controller.rb
index ac7a2084f..632c1dd72 100644
--- a/app/controllers/admin_general_controller.rb
+++ b/app/controllers/admin_general_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_general_controller.rb,v 1.7 2009-06-23 13:52:25 francis Exp $
+# $Id: admin_general_controller.rb,v 1.8 2009-07-16 11:29:02 francis Exp $
class AdminGeneralController < AdminController
def index
@@ -29,6 +29,14 @@ class AdminGeneralController < AdminController
# Recent events
@events_title = "Events in last two days"
date_back_to = Time.now - 2.days
+ if params[:hour]
+ @events_title = "Events in last hour"
+ date_back_to = Time.now - 1.hour
+ end
+ if params[:day]
+ @events_title = "Events in last day"
+ date_back_to = Time.now - 1.day
+ end
if params[:week]
@events_title = "Events in last week"
date_back_to = Time.now - 1.week