summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-17 09:55:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-17 09:55:13 +0000
commit9c9dc6e8147a3e0bf3239511c094dc5f9d2a59a0 (patch)
treefb2dc8222bc9a9296d127115f600198d0486c879 /app/views
parent6e0a818cafadfc48d74845ebedb933f4ecf2aa53 (diff)
downloadredmine-9c9dc6e8147a3e0bf3239511c094dc5f9d2a59a0.tar.gz
redmine-9c9dc6e8147a3e0bf3239511c094dc5f9d2a59a0.zip
Adds email notification on wiki changes (#413). It's disabled by default and can be enabled in application settings.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2749 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/mailer/wiki_content_added.text.html.rhtml3
-rw-r--r--app/views/mailer/wiki_content_added.text.plain.rhtml5
-rw-r--r--app/views/mailer/wiki_content_updated.text.html.rhtml6
-rw-r--r--app/views/mailer/wiki_content_updated.text.plain.rhtml8
4 files changed, 22 insertions, 0 deletions
diff --git a/app/views/mailer/wiki_content_added.text.html.rhtml b/app/views/mailer/wiki_content_added.text.html.rhtml
new file mode 100644
index 000000000..92e368f54
--- /dev/null
+++ b/app/views/mailer/wiki_content_added.text.html.rhtml
@@ -0,0 +1,3 @@
+<p><%= l(:mail_body_wiki_content_added, :page => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
+ :author => h(@wiki_content.author)) %><br />
+<em><%=h @wiki_content.comments %></em></p>
diff --git a/app/views/mailer/wiki_content_added.text.plain.rhtml b/app/views/mailer/wiki_content_added.text.plain.rhtml
new file mode 100644
index 000000000..5699eecd5
--- /dev/null
+++ b/app/views/mailer/wiki_content_added.text.plain.rhtml
@@ -0,0 +1,5 @@
+<%= l(:mail_body_wiki_content_added, :page => h(@wiki_content.page.pretty_title),
+ :author => h(@wiki_content.author)) %>
+<%= @wiki_content.comments %>
+
+<%= @wiki_content_url %>
diff --git a/app/views/mailer/wiki_content_updated.text.html.rhtml b/app/views/mailer/wiki_content_updated.text.html.rhtml
new file mode 100644
index 000000000..9f0bf0c87
--- /dev/null
+++ b/app/views/mailer/wiki_content_updated.text.html.rhtml
@@ -0,0 +1,6 @@
+<p><%= l(:mail_body_wiki_content_updated, :page => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
+ :author => h(@wiki_content.author)) %><br />
+<em><%=h @wiki_content.comments %></em></p>
+
+<p><%= l(:label_view_diff) %>:<br />
+<%= link_to @wiki_diff_url, @wiki_diff_url %></p>
diff --git a/app/views/mailer/wiki_content_updated.text.plain.rhtml b/app/views/mailer/wiki_content_updated.text.plain.rhtml
new file mode 100644
index 000000000..29767a65b
--- /dev/null
+++ b/app/views/mailer/wiki_content_updated.text.plain.rhtml
@@ -0,0 +1,8 @@
+<%= l(:mail_body_wiki_content_updated, :page => h(@wiki_content.page.pretty_title),
+ :author => h(@wiki_content.author)) %>
+<%= @wiki_content.comments %>
+
+<%= @wiki_content.page.pretty_title %>:
+<%= @wiki_content_url %>
+<%= l(:label_view_diff) %>:
+<%= @wiki_diff_url %>