aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-07-13 16:40:17 -0500
committerJoe Sak <joe@joesak.com>2011-07-13 16:40:17 -0500
commit9c93abc466ba8f747d4f89ef3603847a54eb34ae (patch)
treee6c46af3bc4f0d50aa605cf8bad7d3a6f81a33ee
parent146eeb00aa15daebab90528173e92e89983cd458 (diff)
downloadrefinerycms-blog-9c93abc466ba8f747d4f89ef3603847a54eb34ae.tar.gz
refinerycms-blog-9c93abc466ba8f747d4f89ef3603847a54eb34ae.tar.bz2
refinerycms-blog-9c93abc466ba8f747d4f89ef3603847a54eb34ae.zip
weird sentence fix and that RAW thing with mailer
-rw-r--r--app/views/blog/comment_mailer/notification.html.erb22
-rw-r--r--config/locales/en.yml2
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