2013-03-27 13:04:29 -04:00
|
|
|
%h3.page_title Setup your notification level
|
|
|
|
|
2013-03-27 14:07:52 -04:00
|
|
|
%br
|
2013-03-27 13:04:29 -04:00
|
|
|
|
2013-03-27 14:07:52 -04:00
|
|
|
%p.light
|
|
|
|
%strong Disabled
|
|
|
|
– You will not get any notifications via email
|
|
|
|
%p.light
|
|
|
|
%strong Participating
|
|
|
|
– You will receive only notifications from related resources(ex. from assigned issue or your commit)
|
|
|
|
%p.light
|
|
|
|
%strong Watch
|
|
|
|
– You will receive all notifications from projects in which you participate
|
|
|
|
%hr
|
2013-03-27 13:04:29 -04:00
|
|
|
|
2013-03-27 14:07:52 -04:00
|
|
|
= form_tag profile_notifications_path, method: :put, remote: true, class: 'update-notifications' do
|
|
|
|
%ul.well-list
|
2013-03-27 13:04:29 -04:00
|
|
|
%li
|
|
|
|
.row
|
2013-03-27 14:07:52 -04:00
|
|
|
.span4
|
2013-03-27 13:04:29 -04:00
|
|
|
%h5 Global
|
2013-03-27 14:07:52 -04:00
|
|
|
.span7
|
2013-03-27 13:04:29 -04:00
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :notification_level, Notification::N_DISABLED, @notification.disabled?
|
|
|
|
%span Disabled
|
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :notification_level, Notification::N_PARTICIPATING, @notification.participating?
|
|
|
|
%span Participating
|
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :notification_level, Notification::N_WATCH, @notification.watch?
|
|
|
|
%span Watch
|
|
|
|
|
2013-03-27 14:07:52 -04:00
|
|
|
|
|
|
|
= link_to '#', class: 'js-toggle-visibility-link' do
|
|
|
|
%h6.btn.btn-tiny
|
|
|
|
%i.icon-chevron-down
|
|
|
|
%span Per project notifications settings
|
|
|
|
%ul.well-list.js-toggle-visibility-container.hide
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
|
|
|
.row
|
|
|
|
.span4
|
|
|
|
%span
|
|
|
|
= project.name_with_namespace
|
|
|
|
.span7
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :"notification_level[#{project.id}]", Notification::N_DISABLED, @notification.disabled?, disabled: true
|
|
|
|
%span Disabled
|
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :"notification_level[#{project.id}]", Notification::N_PARTICIPATING, @notification.participating?, disabled: true
|
|
|
|
%span Participating
|
|
|
|
|
|
|
|
= label_tag do
|
|
|
|
= radio_button_tag :"notification_level[#{project.id}]", Notification::N_WATCH, @notification.watch?, disabled: true
|
|
|
|
%span Watch
|
|
|
|
|
|
|
|
|
2013-03-27 13:04:29 -04:00
|
|
|
.form-actions
|
|
|
|
= submit_tag 'Save', class: 'btn btn-save'
|
2013-03-27 14:07:52 -04:00
|
|
|
%span.update-success.cgreen.hide
|
|
|
|
%i.icon-ok
|
|
|
|
Saved
|
|
|
|
%span.update-failed.cred.hide
|
|
|
|
%i.icon-remove
|
|
|
|
Failed
|