From 0682b8cfc47867a6be03f4cb7474c59a1b1b7ad7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 12 Oct 2007 17:22:18 +0000 Subject: Added html part to news_added mail. git-svn-id: http://redmine.rubyforge.org/svn/trunk@833 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/mailer/news_added.rhtml | 6 ------ app/views/mailer/news_added.text.html.rhtml | 4 ++++ app/views/mailer/news_added.text.plain.rhtml | 5 +++++ 3 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 app/views/mailer/news_added.rhtml create mode 100644 app/views/mailer/news_added.text.html.rhtml create mode 100644 app/views/mailer/news_added.text.plain.rhtml diff --git a/app/views/mailer/news_added.rhtml b/app/views/mailer/news_added.rhtml deleted file mode 100644 index 18ddfe17d..000000000 --- a/app/views/mailer/news_added.rhtml +++ /dev/null @@ -1,6 +0,0 @@ -<%= @news.title %> -<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'news', :action => 'show', :id => @news %> -<%= @news.author.name %> - -<%= @news.description %> - 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 %>
+<%= @news.author.name %> + +<%= textilizable(@news.description) %> diff --git a/app/views/mailer/news_added.text.plain.rhtml b/app/views/mailer/news_added.text.plain.rhtml new file mode 100644 index 000000000..7ee24b10a --- /dev/null +++ b/app/views/mailer/news_added.text.plain.rhtml @@ -0,0 +1,5 @@ +<%= @news.title %> +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'news', :action => 'show', :id => @news %> +<%= @news.author.name %> + +<%= @news.description %> -- cgit v1.2.3