summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-12 17:22:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-12 17:22:18 +0000
commit0682b8cfc47867a6be03f4cb7474c59a1b1b7ad7 (patch)
tree75ea78a6e06e882b0507f175ae6ca3c63d1dd7ad
parent4b3ff7af50ccb8f2ce0262ab7f9f1df5d6a19c13 (diff)
downloadredmine-0682b8cfc47867a6be03f4cb7474c59a1b1b7ad7.tar.gz
redmine-0682b8cfc47867a6be03f4cb7474c59a1b1b7ad7.zip
Added html part to news_added mail.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@833 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/mailer/news_added.text.html.rhtml4
-rw-r--r--app/views/mailer/news_added.text.plain.rhtml (renamed from app/views/mailer/news_added.rhtml)1
2 files changed, 4 insertions, 1 deletions
diff --git a/app/views/mailer/news_added.text.html.rhtml b/app/views/mailer/news_added.text.html.rhtml
new file mode 100644
index 000000000..7de6f48e8
--- /dev/null
+++ b/app/views/mailer/news_added.text.html.rhtml
@@ -0,0 +1,4 @@
+<%= link_to @news.title, :only_path => false, :host => Setting.host_name, :controller => 'news', :action => 'show', :id => @news %><br />
+<em><%= @news.author.name %></em>
+
+<%= textilizable(@news.description) %>
diff --git a/app/views/mailer/news_added.rhtml b/app/views/mailer/news_added.text.plain.rhtml
index 18ddfe17d..7ee24b10a 100644
--- a/app/views/mailer/news_added.rhtml
+++ b/app/views/mailer/news_added.text.plain.rhtml
@@ -3,4 +3,3 @@
<%= @news.author.name %>
<%= @news.description %>
-