summaryrefslogtreecommitdiff
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r--app/controllers/admin_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index d61de30..55c66cf 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -3,6 +3,13 @@ class AdminController < ApplicationController
3 3
4 def index 4 def index
5 @drafts = Page.drafts 5 @drafts = Page.drafts
6 @recent_changes = Node.all(
7 :limit => 50,
8 :order => "updated_at desc",
9 :conditions => [
10 "updated_at < ? AND updated_at > ?", Time.now, Time.now-14.days
11 ]
12 )
6 end 13 end
7 14
8end 15end