From d48769f152ffbfa7203889c6c08e6bb0591e3ab3 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 21 Jan 2020 04:23:26 +0000 Subject: 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 --- app/views/users/_mail_notifications.html.erb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/views') 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 %> <%= toggle_checkboxes_link("#notified-projects input[type=checkbox]") %><%=l(:label_project_plural)%> <%= 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 %> +

+ <%= pref_fields.check_box :notify_about_high_priority_issues %> + +

+<% end %>

<%= pref_fields.check_box :no_self_notified %> -- cgit v1.2.3