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
|
2013-07-31 10:05:22 -04:00
|
|
|
.alert.alert-info
|
|
|
|
%p
|
|
|
|
%i.icon-circle.cred
|
|
|
|
%strong Disabled
|
|
|
|
– You will not get any notifications via email
|
|
|
|
%p
|
|
|
|
%i.icon-circle.cblue
|
|
|
|
%strong Participating
|
2013-08-15 14:31:00 -04:00
|
|
|
– You will only receive notifications from related resources (e.g. from your commits or assigned issues)
|
2013-07-31 10:05:22 -04:00
|
|
|
%p
|
|
|
|
%i.icon-circle.cgreen
|
|
|
|
%strong Watch
|
|
|
|
– You will receive all notifications from projects in which you participate
|
2013-03-27 13:04:29 -04:00
|
|
|
|
2013-04-04 15:11:51 -04:00
|
|
|
.row
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-4
|
2013-07-31 10:05:22 -04:00
|
|
|
%h4
|
|
|
|
= notification_icon(@notification)
|
|
|
|
Global setting
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-7
|
2013-04-04 15:11:51 -04:00
|
|
|
= form_tag profile_notifications_path, method: :put, remote: true, class: 'update-notifications' do
|
|
|
|
= hidden_field_tag :notification_type, 'global'
|
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :notification_level, Notification::N_DISABLED, @notification.disabled?, class: 'trigger-submit'
|
|
|
|
%span Disabled
|
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :notification_level, Notification::N_PARTICIPATING, @notification.participating?, class: 'trigger-submit'
|
|
|
|
%span Participating
|
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :notification_level, Notification::N_WATCH, @notification.watch?, class: 'trigger-submit'
|
|
|
|
%span Watch
|
|
|
|
|
2013-07-31 10:05:22 -04:00
|
|
|
%br
|
2013-04-04 15:11:51 -04:00
|
|
|
= link_to '#', class: 'js-toggle-visibility-link' do
|
2013-07-31 10:05:22 -04:00
|
|
|
%span.btn.btn-tiny
|
2013-04-04 15:11:51 -04:00
|
|
|
%i.icon-chevron-down
|
2013-06-21 16:17:58 -04:00
|
|
|
%span Advanced notifications settings
|
2013-12-30 17:38:53 -05:00
|
|
|
.js-toggle-visibility-container.gl-hide
|
2013-07-31 10:05:22 -04:00
|
|
|
%hr
|
|
|
|
%h4 Groups:
|
|
|
|
%ul.bordered-list
|
2013-06-21 16:17:58 -04:00
|
|
|
- @users_groups.each do |users_group|
|
|
|
|
- notification = Notification.new(users_group)
|
2013-06-21 16:19:30 -04:00
|
|
|
= render 'settings', type: 'group', membership: users_group, notification: notification
|
2013-06-21 16:17:58 -04:00
|
|
|
|
2013-07-31 10:05:22 -04:00
|
|
|
%h4 Projects:
|
|
|
|
%ul.bordered-list
|
2013-06-21 16:17:58 -04:00
|
|
|
- @users_projects.each do |users_project|
|
|
|
|
- notification = Notification.new(users_project)
|
|
|
|
= render 'settings', type: 'project', membership: users_project, notification: notification
|