summaryrefslogtreecommitdiff
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-27 16:11:47 +0200
committerhukl <contact@smyck.org>2009-04-27 16:11:47 +0200
commite9418758513fea6a83f63d31ecac316fdb6fc151 (patch)
tree0cddb6ca32f082837b6c2fb006e3ffe6f3c27b79 /app/controllers/admin_controller.rb
parent704d002850d995e677bd550c774d9c950f8e7e9c (diff)
seperated admin overview into partials. included recent changes
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