summaryrefslogtreecommitdiffstats
path: root/app/views/mailer
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-04 14:32:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-04 14:32:58 +0000
commit36009de154e0d7c50d56f21e79e0f812d9d8b5e8 (patch)
tree94534f093b942f97c90e004350b95fe1a6a0afd0 /app/views/mailer
parent8d3773e0e1d0e259a2a193f31515ee910eb88626 (diff)
downloadredmine-36009de154e0d7c50d56f21e79e0f812d9d8b5e8.tar.gz
redmine-36009de154e0d7c50d56f21e79e0f812d9d8b5e8.zip
Adds email notifications support for news comments (#2074).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5003 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/mailer')
-rw-r--r--app/views/mailer/news_comment_added.text.html.rhtml5
-rw-r--r--app/views/mailer/news_comment_added.text.plain.rhtml6
2 files changed, 11 insertions, 0 deletions
diff --git a/app/views/mailer/news_comment_added.text.html.rhtml b/app/views/mailer/news_comment_added.text.html.rhtml
new file mode 100644
index 000000000..ef2be0f65
--- /dev/null
+++ b/app/views/mailer/news_comment_added.text.html.rhtml
@@ -0,0 +1,5 @@
+<h1><%= link_to(h(@news.title), @news_url) %></h1>
+
+<p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
+
+<%= textilizable @comment, :comments, :only_path => false %>
diff --git a/app/views/mailer/news_comment_added.text.plain.rhtml b/app/views/mailer/news_comment_added.text.plain.rhtml
new file mode 100644
index 000000000..aadbc37c0
--- /dev/null
+++ b/app/views/mailer/news_comment_added.text.plain.rhtml
@@ -0,0 +1,6 @@
+<%= @news.title %>
+<%= @news_url %>
+
+<%= l(:text_user_wrote, :value => @comment.author) %>
+
+<%= @comment.comments %>