gitlab-org--gitlab-foss/app/views/profiles/notifications/show.html.haml

59 lines
2.0 KiB
Plaintext
Raw Normal View History

%h3.page-title
Notifications settings
2013-07-31 14:39:57 +00:00
%p.light
GitLab uses the email specified in your profile for notifications
2013-07-31 14:39:57 +00:00
%hr
.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
– You will only receive notifications from related resources (e.g. from your commits or assigned issues)
%p
%i.icon-circle.cgreen
%strong Watch
– You will receive all notifications from projects in which you participate
2013-03-27 17:04:29 +00:00
.row
.col-sm-4
%h4
= notification_icon(@notification)
Global setting
.col-sm-8
= form_tag profile_notifications_path, method: :put, remote: true, class: 'update-notifications' do
= hidden_field_tag :notification_type, 'global'
= label_tag nil, class: 'radio-inline' do
= radio_button_tag :notification_level, Notification::N_DISABLED, @notification.disabled?, class: 'trigger-submit'
%span Disabled
= label_tag nil, class: 'radio-inline' do
= radio_button_tag :notification_level, Notification::N_PARTICIPATING, @notification.participating?, class: 'trigger-submit'
%span Participating
= label_tag nil, class: 'radio-inline' do
= radio_button_tag :notification_level, Notification::N_WATCH, @notification.watch?, class: 'trigger-submit'
%span Watch
%br
= link_to '#', class: 'js-toggle-visibility-link' do
%span.btn.btn-tiny
%i.icon-chevron-down
2013-06-21 20:17:58 +00:00
%span Advanced notifications settings
.js-toggle-visibility-container.hide
%hr
%h4 Groups:
%ul.bordered-list
2013-06-21 20:17:58 +00:00
- @users_groups.each do |users_group|
- notification = Notification.new(users_group)
= render 'settings', type: 'group', membership: users_group, notification: notification
2013-06-21 20:17:58 +00:00
%h4 Projects:
%ul.bordered-list
2013-06-21 20:17:58 +00:00
- @users_projects.each do |users_project|
- notification = Notification.new(users_project)
= render 'settings', type: 'project', membership: users_project, notification: notification