2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Notifications"
|
2017-06-22 10:47:50 -04:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
2016-06-30 12:42:07 -04:00
|
|
|
= render 'profiles/head'
|
2015-09-09 17:05:47 -04:00
|
|
|
|
2016-03-29 12:59:03 -04:00
|
|
|
%div
|
|
|
|
- if @user.errors.any?
|
2016-12-23 04:37:12 -05:00
|
|
|
.alert.alert-danger
|
2015-02-06 18:23:58 -05:00
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2014-02-17 11:06:24 -05:00
|
|
|
= hidden_field_tag :notification_type, 'global'
|
2016-02-29 11:01:11 -05:00
|
|
|
.row
|
2017-06-22 10:47:50 -04:00
|
|
|
.col-lg-4.profile-settings-sidebar
|
2016-02-29 11:01:11 -05:00
|
|
|
%h4
|
|
|
|
= page_title
|
|
|
|
%p
|
|
|
|
You can specify notification level per group or per project.
|
|
|
|
%p
|
|
|
|
By default, all projects and groups will use the global notifications setting.
|
2017-06-22 10:47:50 -04:00
|
|
|
.col-lg-8
|
2016-02-29 11:01:11 -05:00
|
|
|
%h5
|
|
|
|
Global notification settings
|
2013-03-27 13:04:29 -04:00
|
|
|
|
2016-03-29 12:59:03 -04:00
|
|
|
= form_for @user, url: profile_notifications_path, method: :put, html: { class: 'update-notifications prepend-top-default' } do |f|
|
|
|
|
.form-group
|
|
|
|
= f.label :notification_email, class: "label-light"
|
|
|
|
= f.select :notification_email, @user.all_emails, { include_blank: false }, class: "select2"
|
|
|
|
|
2016-06-17 11:26:32 -04:00
|
|
|
= label_tag :global_notification_level, "Global notification level", class: "label-light"
|
|
|
|
%br
|
|
|
|
.clearfix
|
2016-06-21 04:58:03 -04:00
|
|
|
.form-group.pull-left.global-notification-setting
|
2016-12-10 01:21:47 -05:00
|
|
|
= render 'shared/notifications/button', notification_setting: @global_notification_setting
|
2016-06-14 14:36:36 -04:00
|
|
|
|
|
|
|
.clearfix
|
|
|
|
|
2017-03-16 23:18:57 -04:00
|
|
|
= form_for @user, url: profile_notifications_path, method: :put do |f|
|
|
|
|
%label{ for: 'user_notified_of_own_activity' }
|
|
|
|
= f.check_box :notified_of_own_activity
|
|
|
|
%span Receive notifications about your own activity
|
|
|
|
|
2016-02-29 11:01:11 -05:00
|
|
|
%hr
|
|
|
|
%h5
|
2016-03-28 12:17:42 -04:00
|
|
|
Groups (#{@group_notifications.count})
|
2016-02-29 11:01:11 -05:00
|
|
|
%div
|
|
|
|
%ul.bordered-list
|
2016-03-28 12:17:42 -04:00
|
|
|
- @group_notifications.each do |setting|
|
2016-03-29 12:59:03 -04:00
|
|
|
= render 'group_settings', setting: setting, group: setting.source
|
2016-02-29 11:01:11 -05:00
|
|
|
%h5
|
2016-03-28 12:17:42 -04:00
|
|
|
Projects (#{@project_notifications.count})
|
2016-02-29 11:01:11 -05:00
|
|
|
%p.account-well
|
2016-03-29 11:56:12 -04:00
|
|
|
To specify the notification level per project of a group you belong to, you need to visit project page and change notification level there.
|
2016-02-29 11:01:11 -05:00
|
|
|
.append-bottom-default
|
|
|
|
%ul.bordered-list
|
2016-03-28 12:17:42 -04:00
|
|
|
- @project_notifications.each do |setting|
|
2016-03-29 12:59:03 -04:00
|
|
|
= render 'project_settings', setting: setting, project: setting.source
|