2013-07-31 14:05:22 +00:00
|
|
|
%h3.page-title
|
|
|
|
Notifications settings
|
2013-07-31 14:39:57 +00:00
|
|
|
%p.light
|
2013-08-15 18:31:00 +00:00
|
|
|
GitLab uses the email specified in your profile for notifications
|
2013-07-31 14:39:57 +00:00
|
|
|
%hr
|
2014-02-17 16:06:24 +00:00
|
|
|
= form_tag profile_notifications_path, method: :put, remote: true, class: 'update-notifications form-horizontal global-notifications-form' do
|
|
|
|
= hidden_field_tag :notification_type, 'global'
|
2013-03-27 17:04:29 +00:00
|
|
|
|
2014-02-17 16:06:24 +00:00
|
|
|
= label_tag :notification_level, 'Notification level', class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
.radio
|
|
|
|
= label_tag nil, class: '' do
|
2013-04-04 19:11:51 +00:00
|
|
|
= radio_button_tag :notification_level, Notification::N_DISABLED, @notification.disabled?, class: 'trigger-submit'
|
2014-02-17 16:06:24 +00:00
|
|
|
.level-title
|
|
|
|
Disabled
|
|
|
|
%p You will not get any notifications via email
|
2013-04-04 19:11:51 +00:00
|
|
|
|
2014-12-29 13:55:21 +00:00
|
|
|
.radio
|
|
|
|
= label_tag nil, class: '' do
|
|
|
|
= radio_button_tag :notification_level, Notification::N_MENTION, @notification.mention?, class: 'trigger-submit'
|
|
|
|
.level-title
|
|
|
|
Mention
|
2015-01-21 21:36:27 +00:00
|
|
|
%p You will receive notifications only for comments in which you were @mentioned
|
2014-12-29 13:55:21 +00:00
|
|
|
|
2014-02-17 16:06:24 +00:00
|
|
|
.radio
|
|
|
|
= label_tag nil, class: '' do
|
2013-04-04 19:11:51 +00:00
|
|
|
= radio_button_tag :notification_level, Notification::N_PARTICIPATING, @notification.participating?, class: 'trigger-submit'
|
2014-02-17 16:06:24 +00:00
|
|
|
.level-title
|
|
|
|
Participating
|
|
|
|
%p You will only receive notifications from related resources (e.g. from your commits or assigned issues)
|
2013-04-04 19:11:51 +00:00
|
|
|
|
2014-02-17 16:06:24 +00:00
|
|
|
.radio
|
|
|
|
= label_tag nil, class: '' do
|
2013-04-04 19:11:51 +00:00
|
|
|
= radio_button_tag :notification_level, Notification::N_WATCH, @notification.watch?, class: 'trigger-submit'
|
2014-02-17 16:06:24 +00:00
|
|
|
.level-title
|
|
|
|
Watch
|
|
|
|
%p You will receive all notifications from projects in which you participate
|
2013-04-04 19:11:51 +00:00
|
|
|
|
2014-02-17 16:06:24 +00:00
|
|
|
.clearfix
|
2013-07-31 14:05:22 +00:00
|
|
|
%hr
|
2014-02-17 16:06:24 +00:00
|
|
|
.row.all-notifications
|
|
|
|
.col-md-6
|
2014-10-14 10:02:05 +00:00
|
|
|
%p
|
2014-10-14 10:28:30 +00:00
|
|
|
You can also specify notification level per group or per project.
|
2014-10-14 10:02:05 +00:00
|
|
|
%br
|
2014-10-14 10:28:30 +00:00
|
|
|
By default all projects and groups uses notification level set above.
|
2014-02-17 16:06:24 +00:00
|
|
|
%h4 Groups:
|
|
|
|
%ul.bordered-list
|
2014-09-14 16:51:54 +00:00
|
|
|
- @group_members.each do |users_group|
|
2014-02-17 16:06:24 +00:00
|
|
|
- notification = Notification.new(users_group)
|
|
|
|
= render 'settings', type: 'group', membership: users_group, notification: notification
|
2013-06-21 20:17:58 +00:00
|
|
|
|
2014-02-17 16:06:24 +00:00
|
|
|
.col-md-6
|
2014-10-14 10:02:05 +00:00
|
|
|
%p
|
|
|
|
To specify notification level per project of a group you belong to,
|
|
|
|
%br
|
2014-10-14 10:28:30 +00:00
|
|
|
you need to be a member of the project itself, not only its group.
|
2014-02-17 16:06:24 +00:00
|
|
|
%h4 Projects:
|
|
|
|
%ul.bordered-list
|
2014-09-15 07:57:02 +00:00
|
|
|
- @project_members.each do |project_member|
|
|
|
|
- notification = Notification.new(project_member)
|
|
|
|
= render 'settings', type: 'project', membership: project_member, notification: notification
|