aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-09 21:06:54 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-09 21:06:54 +1200
commit54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45 (patch)
tree62999b848f1c9c2054627901bc1eecc4a8651fb2 /app/controllers
parent832a0e4866cc0dd33dc6c1c4d5dc75e35152e553 (diff)
downloadrefinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.tar.gz
refinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.tar.bz2
refinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.zip
Set up menu and what is to come.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin/blog/categories_controller.rb5
-rw-r--r--app/controllers/admin/blog/comments_controller.rb15
-rw-r--r--app/controllers/admin/blog/settings_controller.rb11
3 files changed, 31 insertions, 0 deletions
diff --git a/app/controllers/admin/blog/categories_controller.rb b/app/controllers/admin/blog/categories_controller.rb
new file mode 100644
index 0000000..ddce1c8
--- /dev/null
+++ b/app/controllers/admin/blog/categories_controller.rb
@@ -0,0 +1,5 @@
+class Admin::Blog::CategoriesController < Admin::BaseController
+
+ crudify :blog_category, :title_attribute => :name, :order => 'created_at DESC'
+
+end
diff --git a/app/controllers/admin/blog/comments_controller.rb b/app/controllers/admin/blog/comments_controller.rb
new file mode 100644
index 0000000..4c3487c
--- /dev/null
+++ b/app/controllers/admin/blog/comments_controller.rb
@@ -0,0 +1,15 @@
+class Admin::Blog::CommentsController < Admin::BaseController
+
+ crudify :blog_comment, :title_attribute => :name, :order => 'created_at DESC'
+
+ def approved
+ @blog_comments = BlogComment.approved
+ render :action => 'index'
+ end
+
+ def rejected
+ @blog_comments = BlogComment.rejected
+ render :action => 'index'
+ end
+
+end
diff --git a/app/controllers/admin/blog/settings_controller.rb b/app/controllers/admin/blog/settings_controller.rb
new file mode 100644
index 0000000..9ea2997
--- /dev/null
+++ b/app/controllers/admin/blog/settings_controller.rb
@@ -0,0 +1,11 @@
+class Admin::Blog::SettingsController < Admin::BaseController
+
+ def update_notified
+
+ end
+
+ def moderation
+
+ end
+
+end