From 7e3184fa6f74fd4f055237a0f495a7cf0d293ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Sat, 7 Jul 2012 10:04:27 +0300 Subject: Add approve/reject links in comment notification mail. --- app/views/refinery/blog/comment_mailer/notification.html.erb | 5 +++++ config/locales/en.yml | 4 ++++ 2 files changed, 9 insertions(+) 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: -- cgit v1.2.3