From 9c93abc466ba8f747d4f89ef3603847a54eb34ae Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Wed, 13 Jul 2011 16:40:17 -0500 Subject: weird sentence fix and that RAW thing with mailer --- .../blog/comment_mailer/notification.html.erb | 22 +++++++++++----------- config/locales/en.yml | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/views/blog/comment_mailer/notification.html.erb b/app/views/blog/comment_mailer/notification.html.erb index b75020d..800f12c 100644 --- a/app/views/blog/comment_mailer/notification.html.erb +++ b/app/views/blog/comment_mailer/notification.html.erb @@ -1,17 +1,17 @@ -<%= t('.greeting') %>, +<%=raw t('.greeting') %>, -<%= t('.you_recieved_new_comment') %> +<%=raw t('.you_recieved_new_comment') %> -<%= t('.comment_starts') %> +<%=raw t('.comment_starts') %> -<%= t('.from') %>: <%= @comment.name %> -<%= t('.email') %>: <%= @comment.email %> -<%= t('.message') %>: -<%= @comment.body %> +<%=raw t('.from') %>: <%= @comment.name %> +<%=raw t('.email') %>: <%= @comment.email %> +<%=raw t('.message') %>: +<%=simple_format strip_tags(@comment.body) %> -<%= t('.comment_ends') %> +<%=raw t('.comment_ends') %> -<%= t('.closing_line') %>, -<%= RefinerySetting[:site_name] %> +<%=raw t('.closing_line') %>, +<%=raw RefinerySetting[:site_name] %> -<%= t('.ps') %> +<%=raw t('.ps') %> diff --git a/config/locales/en.yml b/config/locales/en.yml index af45398..4f3acec 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -91,7 +91,7 @@ en: email: Email message: Message 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 later there.' + 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: categories: title: Categories -- cgit v1.2.3