summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-02-05 08:50:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-02-05 08:50:21 +0000
commitb5366eb3079c46f4fcfbe8a4172732f2abeeed96 (patch)
treed358339c3245fa0d4a4f0d886ffa55d958344f20 /app/views
parentc46c0e7452a1792d11a186d1059bef52a4867cf4 (diff)
downloadredmine-b5366eb3079c46f4fcfbe8a4172732f2abeeed96.tar.gz
redmine-b5366eb3079c46f4fcfbe8a4172732f2abeeed96.zip
Send a notification when security settings are changed (#21421).
git-svn-id: http://svn.redmine.org/redmine/trunk@15148 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/mailer/settings_updated.html.erb14
-rw-r--r--app/views/mailer/settings_updated.text.erb12
2 files changed, 26 insertions, 0 deletions
diff --git a/app/views/mailer/settings_updated.html.erb b/app/views/mailer/settings_updated.html.erb
new file mode 100644
index 000000000..8596089a2
--- /dev/null
+++ b/app/views/mailer/settings_updated.html.erb
@@ -0,0 +1,14 @@
+<p><%= l(:mail_body_settings_updated) %></p>
+
+<ul>
+<% @changes.each do |name| %>
+ <li><%= l("setting_#{name}") %></li>
+<% end %>
+</ul>
+
+<%= link_to @url, @url %>
+
+<p><%= l(:field_user) %>: <strong><%= User.current.login %></strong><br/>
+<%= l(:field_remote_ip) %>: <strong><%= User.current.remote_ip %></strong><br/>
+<%= l(:label_date) %>: <strong><%= format_time Time.now, true %></strong></p>
+
diff --git a/app/views/mailer/settings_updated.text.erb b/app/views/mailer/settings_updated.text.erb
new file mode 100644
index 000000000..51a2a8f6a
--- /dev/null
+++ b/app/views/mailer/settings_updated.text.erb
@@ -0,0 +1,12 @@
+<%= l(:mail_body_settings_updated) %>
+
+<% @changes.each do |name| %>
+ * <%= l("setting_#{name}") %>
+<% end %>
+
+<%= @url %>
+
+<%= l(:field_user) %>: <%= User.current.login %>
+<%= l(:field_remote_ip) %>: <%= User.current.remote_ip %>
+<%= l(:label_date) %>: <%= format_time Time.now, true %>
+