aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-07-07 10:04:27 +0300
committerPhilip Arndt <parndt@gmail.com>2012-09-05 15:10:41 +1200
commit7e3184fa6f74fd4f055237a0f495a7cf0d293ac1 (patch)
treea2183075039d25200af9bf2635aab124d92db68e
parente7495f1fc3cb7931b94a84dde60764b30c1368ca (diff)
downloadrefinerycms-blog-7e3184fa6f74fd4f055237a0f495a7cf0d293ac1.tar.gz
refinerycms-blog-7e3184fa6f74fd4f055237a0f495a7cf0d293ac1.tar.bz2
refinerycms-blog-7e3184fa6f74fd4f055237a0f495a7cf0d293ac1.zip
Add approve/reject links in comment notification mail.
-rw-r--r--app/views/refinery/blog/comment_mailer/notification.html.erb5
-rw-r--r--config/locales/en.yml4
2 files changed, 9 insertions, 0 deletions
diff --git a/app/views/refinery/blog/comment_mailer/notification.html.erb b/app/views/refinery/blog/comment_mailer/notification.html.erb
index 8bf642e..bc0b1a8 100644
--- a/app/views/refinery/blog/comment_mailer/notification.html.erb
+++ b/app/views/refinery/blog/comment_mailer/notification.html.erb
@@ -11,6 +11,11 @@
<%=raw t('.comment_ends') %>
+<%=raw link_to t('.approve'), refinery.approve_blog_admin_comment_url(@comment) -%>
+<%=raw t('.or') -%>
+<%=raw link_to t('.reject'), refinery.reject_blog_admin_comment_url(@comment) -%>
+<%=raw t('.this_comment') %>
+
<%=raw t('.closing_line') %>,
<%=raw Refinery::Core.site_name %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 10cd1ab..b98921f 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -95,6 +95,10 @@ en:
from: From
email: Email
message: Message
+ approve: Approve
+ or: " or "
+ reject: reject
+ this_comment: " this comment."
closing_line: Kind Regards
ps: 'P.S. All your comments are stored in the "Blog" section of Refinery under the "Comments" submenu should you ever want to view it there later.'
shared: