From f7d4d68953f913fa025d140674c6db56ed612c00 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 18 Oct 2009 17:57:18 +0200 Subject: re-activated admin overview screen - listing 20 recent changes and 20 current drafts. more to come --- app/controllers/admin_controller.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/controllers/admin_controller.rb') diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 538e7d7..0446387 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -5,9 +5,13 @@ class AdminController < ApplicationController before_filter :login_required def index - @drafts = Page.drafts + @drafts = Node.all( + :limit => 20, + :order => "updated_at desc", + :conditions => ["draft_id IS NOT NULL"] + ) @recent_changes = Node.all( - :limit => 50, + :limit => 20, :order => "updated_at desc", :conditions => [ "updated_at < ? AND updated_at > ?", Time.now, Time.now-14.days -- cgit v1.3