aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-09-02 17:49:11 +1200
committerPhilip Arndt <parndt@gmail.com>2010-09-02 17:49:11 +1200
commit5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2 (patch)
treee0437a22051a2128ac0e9dcf08b3a2d16c73b4e0 /config
parent4d1e364085c0de27d3ca58cc90eba9036744fc79 (diff)
downloadrefinerycms-blog-5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2.tar.gz
refinerycms-blog-5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2.tar.bz2
refinerycms-blog-5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2.zip
Comment moderation now working in the backend. Of course it still happens automatically if the blog isn't moderated based on whether it's spam or not.
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml18
-rw-r--r--config/routes.rb6
2 files changed, 23 insertions, 1 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 1c00495..f137f30 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -11,8 +11,22 @@ en:
index:
no_items_yet: There are no categories yet. Click "{{create}}" to add your first category.
comments:
+ approved: The comment from '{{author}}' has been approved.
+ rejected: The comment from '{{author}}' has been rejected.
index:
- no_items_yet: There are no {{type}} comments yet.
+ no_items_yet: There are no {{type}} comments.
+ show:
+ comment: Comment
+ blog_post: Blog Post
+ from: Posted by
+ date: Posted at
+ message: Comment
+ details: Details
+ age: Age
+ actions: Actions
+ back: Back to all comments
+ reject: Reject this comment
+ approve: Approve this comment
posts:
form:
advanced_options: Advanced Options
@@ -59,6 +73,8 @@ en:
title: Comments
by: Posted by {{who}}
time_ago: '{{time}} ago'
+ thank_you: 'Thank you for commenting.'
+ thank_you_moderated: 'Thank you for commenting. Your message has been placed in the moderation queue and will appear shortly.'
other: Other Blog Posts
filed_in: Filed in
created_at_title: Publishing Date
diff --git a/config/routes.rb b/config/routes.rb
index fabb925..ce4a2ef 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -8,11 +8,17 @@ if Rails.version < '3.0.0'
map.namespace(:admin, :path_prefix => 'refinery') do |admin|
admin.namespace :blog do |blog|
blog.resources :posts
+
blog.resources :categories
+
blog.resources :comments, :collection => {
:approved => :get,
:rejected => :get
+ }, :member => {
+ :approved => :get,
+ :rejected => :get
}
+
blog.resources :settings, :collection => {
:notification_recipients => [:get, :post],
:moderation => :get