Add is_private support for db and contacts
This commit is contained in:
@@ -23,8 +23,10 @@ class MessengerSetting < ActiveRecord::Base
|
||||
'post_wiki_updates',
|
||||
'post_db',
|
||||
'post_db_updates',
|
||||
'post_private_db',
|
||||
'post_contact',
|
||||
'post_contact_updates',
|
||||
'post_private_contacts',
|
||||
'post_password',
|
||||
'post_password_updates'
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
br
|
||||
= render partial: 'messenger_settings/messenger_select', locals: { f: f, mf: :post_db }
|
||||
= render partial: 'messenger_settings/messenger_select', locals: { f: f, mf: :post_db_updates }
|
||||
= render partial: 'messenger_settings/messenger_select', locals: { f: f, mf: :post_private_db }
|
||||
|
||||
- if RedmineMessenger::REDMINE_CONTACTS_SUPPORT && User.current.allowed_to?(:view_contacts, @project)
|
||||
br
|
||||
@@ -57,6 +58,7 @@
|
||||
br
|
||||
= render partial: 'messenger_settings/messenger_select', locals: { f: f, mf: :post_contact }
|
||||
= render partial: 'messenger_settings/messenger_select', locals: { f: f, mf: :post_contact_updates }
|
||||
= render partial: 'messenger_settings/messenger_select', locals: { f: f, mf: :post_private_contacts }
|
||||
|
||||
- if Redmine::Plugin.installed?('redmine_passwords') && User.current.allowed_to?(:view_passwords, @project)
|
||||
br
|
||||
|
||||
@@ -72,6 +72,9 @@ p
|
||||
p
|
||||
= content_tag(:label, l(:label_settings_post_db_updates))
|
||||
= check_box_tag 'settings[post_db_updates]', 1, @settings[:post_db_updates].to_i == 1
|
||||
p
|
||||
= content_tag(:label, l(:label_settings_post_private_db))
|
||||
= check_box_tag 'settings[post_private_db]', 1, @settings[:post_private_db].to_i == 1
|
||||
|
||||
- if RedmineMessenger::REDMINE_CONTACTS_SUPPORT
|
||||
br
|
||||
@@ -84,6 +87,9 @@ p
|
||||
p
|
||||
= content_tag(:label, l(:label_settings_post_contact_updates))
|
||||
= check_box_tag 'settings[post_contact_updates]', 1, @settings[:post_contact_updates].to_i == 1
|
||||
p
|
||||
= content_tag(:label, l(:label_settings_post_private_contacts))
|
||||
= check_box_tag 'settings[post_private_contacts]', 1, @settings[:post_private_contacts].to_i == 1
|
||||
|
||||
- if Redmine::Plugin.installed?('redmine_passwords')
|
||||
br
|
||||
|
||||
Reference in New Issue
Block a user