diff options
| author | hukl <contact@smyck.org> | 2009-10-18 17:57:18 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-18 17:57:18 +0200 |
| commit | f7d4d68953f913fa025d140674c6db56ed612c00 (patch) | |
| tree | caa5682d25cfe79e1e99572b75058ce6e72bc733 /app/controllers | |
| parent | 443947a319692e0462024c99f06e4d18ab5f0344 (diff) | |
re-activated admin overview screen - listing 20 recent changes and 20 current drafts. more to come
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/admin_controller.rb | 8 |
1 files changed, 6 insertions, 2 deletions
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 | |||
| 5 | before_filter :login_required | 5 | before_filter :login_required |
| 6 | 6 | ||
| 7 | def index | 7 | def index |
| 8 | @drafts = Page.drafts | 8 | @drafts = Node.all( |
| 9 | :limit => 20, | ||
| 10 | :order => "updated_at desc", | ||
| 11 | :conditions => ["draft_id IS NOT NULL"] | ||
| 12 | ) | ||
| 9 | @recent_changes = Node.all( | 13 | @recent_changes = Node.all( |
| 10 | :limit => 50, | 14 | :limit => 20, |
| 11 | :order => "updated_at desc", | 15 | :order => "updated_at desc", |
| 12 | :conditions => [ | 16 | :conditions => [ |
| 13 | "updated_at < ? AND updated_at > ?", Time.now, Time.now-14.days | 17 | "updated_at < ? AND updated_at > ?", Time.now, Time.now-14.days |
