diff options
author | francis <francis> | 2008-04-18 15:11:13 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-18 15:11:13 +0000 |
commit | 23beb404e2ed501ff127d062c7281b1dd99e91c1 (patch) | |
tree | 823b973eb4c82abcedfeb8381b1140a0f4280c3c /app/controllers/admin_controller.rb | |
parent | 5041171e9860f08754f79d7f199416053b76ef90 (diff) |
2 day timeline
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a7b2f244f..67cd5fac8 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.13 2008-04-17 10:38:38 francis Exp $ +# $Id: admin_controller.rb,v 1.14 2008-04-18 15:11:13 francis Exp $ class AdminController < ApplicationController layout "admin" @@ -25,8 +25,12 @@ class AdminController < ApplicationController def timeline # Recent events - @events_title = "Events in last week" - date_back_to = Time.now - 1.week + @events_title = "Events in last two days" + date_back_to = Time.now - 2.days + if params[:week] + @events_title = "Events in last week" + date_back_to = Time.now - 1.week + end if params[:month] @events_title = "Events in last month" date_back_to = Time.now - 1.month |