2013-07-31 10:05:22 -04:00
|
|
|
%h3.page-title
|
|
|
|
Notifications settings
|
2013-07-31 10:39:57 -04:00
|
|
|
%p.light
|
2013-08-15 14:31:00 -04:00
|
|
|
GitLab uses the email specified in your profile for notifications
|
2013-07-31 10:39:57 -04:00
|
|
|
%hr
|
2014-02-17 11:06:24 -05: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 13:04:29 -04:00
|
|
|
|
2014-02-17 11:06:24 -05:00
|
|
|
= label_tag :notification_level, 'Notification level', class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
.radio
|
|
|
|
= label_tag nil, class: '' do
|
2013-04-04 15:11:51 -04:00
|
|
|
= radio_button_tag :notification_level, Notification::N_DISABLED, @notification.disabled?, class: 'trigger-submit'
|
2014-02-17 11:06:24 -05:00
|
|
|
.level-title
|
|
|
|
Disabled
|
|
|
|
%p You will not get any notifications via email
|
2013-04-04 15:11:51 -04:00
|
|
|
|
2014-02-17 11:06:24 -05:00
|
|
|
.radio
|
|
|
|
= label_tag nil, class: '' do
|
2013-04-04 15:11:51 -04:00
|
|
|
= radio_button_tag :notification_level, Notification::N_PARTICIPATING, @notification.participating?, class: 'trigger-submit'
|
2014-02-17 11:06:24 -05:00
|
|
|
.level-title
|
|
|
|
Participating
|
|
|
|
%p You will only receive notifications from related resources (e.g. from your commits or assigned issues)
|
2013-04-04 15:11:51 -04:00
|
|
|
|
2014-02-17 11:06:24 -05:00
|
|
|
.radio
|
|
|
|
= label_tag nil, class: '' do
|
2013-04-04 15:11:51 -04:00
|
|
|
= radio_button_tag :notification_level, Notification::N_WATCH, @notification.watch?, class: 'trigger-submit'
|
2014-02-17 11:06:24 -05:00
|
|
|
.level-title
|
|
|
|
Watch
|
|
|
|
%p You will receive all notifications from projects in which you participate
|
2013-04-04 15:11:51 -04:00
|
|
|
|
2014-02-17 11:06:24 -05:00
|
|
|
.clearfix
|
2013-07-31 10:05:22 -04:00
|
|
|
%hr
|
2014-02-17 11:06:24 -05:00
|
|
|
%p
|
|
|
|
You can also specify notification level per group or per project
|
|
|
|
%br
|
|
|
|
By default all projects and groups uses notification level set above
|
|
|
|
.row.all-notifications
|
|
|
|
.col-md-6
|
|
|
|
%h4 Groups:
|
|
|
|
%ul.bordered-list
|
2014-09-14 12:51:54 -04:00
|
|
|
- @group_members.each do |users_group|
|
2014-02-17 11:06:24 -05:00
|
|
|
- notification = Notification.new(users_group)
|
|
|
|
= render 'settings', type: 'group', membership: users_group, notification: notification
|
2013-06-21 16:17:58 -04:00
|
|
|
|
2014-02-17 11:06:24 -05:00
|
|
|
.col-md-6
|
|
|
|
%h4 Projects:
|
|
|
|
%ul.bordered-list
|
2014-09-14 12:51:54 -04:00
|
|
|
- @project_members.each do |users_project|
|
2014-02-17 11:06:24 -05:00
|
|
|
- notification = Notification.new(users_project)
|
|
|
|
= render 'settings', type: 'project', membership: users_project, notification: notification
|