summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-21 04:23:26 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-21 04:23:26 +0000
commitd48769f152ffbfa7203889c6c08e6bb0591e3ab3 (patch)
tree010840b0a332949a182339eb50f6b99455ee78ea /app/views
parentd438c89b1a986176bf9fa6e5bb4dab6a1f4ee8e1 (diff)
downloadredmine-d48769f152ffbfa7203889c6c08e6bb0591e3ab3.tar.gz
redmine-d48769f152ffbfa7203889c6c08e6bb0591e3ab3.zip
Enable users to receive email notifications about high issues (only) (#32628).
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19449 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/users/_mail_notifications.html.erb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/users/_mail_notifications.html.erb b/app/views/users/_mail_notifications.html.erb
index 85842de56..abf890e46 100644
--- a/app/views/users/_mail_notifications.html.erb
+++ b/app/views/users/_mail_notifications.html.erb
@@ -10,7 +10,7 @@
<%= content_tag 'fieldset', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
<legend><%= toggle_checkboxes_link("#notified-projects input[type=checkbox]") %><%=l(:label_project_plural)%></legend>
<%= render_project_nested_lists(@user.projects) do |project|
- content_tag('label',
+ content_tag('label',
check_box_tag(
'user[notified_project_ids][]',
project.id,
@@ -24,6 +24,13 @@
<% end %>
<%= fields_for :pref, @user.pref do |pref_fields| %>
+
+<% if IssuePriority.default_or_middle and high_priority = IssuePriority.where(['position > ?', IssuePriority.default_or_middle.position]).first %>
+<p>
+ <%= pref_fields.check_box :notify_about_high_priority_issues %>
+ <label for="pref_notify_about_high_priority_issues"><%= t(:label_user_mail_notify_about_high_priority_issues_html, prio: high_priority.name.downcase) %></label>
+</p>
+<% end %>
<p>
<%= pref_fields.check_box :no_self_notified %>
<label for="pref_no_self_notified"><%= l(:label_user_mail_no_self_notified) %></label>