Skip to content
Browse files

Add approve/reject links in comment notification mail.

  • Loading branch information...
1 parent e7495f1 commit 7e3184fa6f74fd4f055237a0f495a7cf0d293ac1 @ugisozols ugisozols committed with parndt Jul 7, 2012
Showing with 9 additions and 0 deletions.
  1. +5 −0 app/views/refinery/blog/comment_mailer/notification.html.erb
  2. +4 −0 config/locales/en.yml
View
5 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 %>
View
4 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:

0 comments on commit 7e3184f

Please sign in to comment.
Something went wrong with that request. Please try again.