debian-mirror-gitlab/app/views/profiles/notifications/show.html.haml

57 lines
2.1 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Notifications"
2017-09-10 17:25:29 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2015-09-25 12:07:36 +05:30
2016-06-02 11:05:42 +05:30
%div
- if @user.errors.any?
2017-08-17 22:00:37 +05:30
.alert.alert-danger
2015-04-26 12:48:37 +05:30
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
2014-09-02 18:07:02 +05:30
= hidden_field_tag :notification_type, 'global'
2018-03-17 18:26:18 +05:30
.row.prepend-top-default
2017-09-10 17:25:29 +05:30
.col-lg-4.profile-settings-sidebar
2018-03-17 18:26:18 +05:30
%h4.prepend-top-0
2016-06-02 11:05:42 +05:30
= 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-09-10 17:25:29 +05:30
.col-lg-8
2018-03-17 18:26:18 +05:30
%h5.prepend-top-0
2016-06-02 11:05:42 +05:30
Global notification settings
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
= form_for @user, url: profile_notifications_path, method: :put, html: { class: 'update-notifications prepend-top-default' } do |f|
2019-05-30 16:15:17 +05:30
.form-group
= f.label :notification_email, class: "label-bold"
= f.select :notification_email, @user.all_emails, { include_blank: false }, class: "select2"
2015-04-26 12:48:37 +05:30
2018-11-18 11:00:15 +05:30
= label_tag :global_notification_level, "Global notification level", class: "label-bold"
2016-06-22 15:30:34 +05:30
%br
.clearfix
2018-11-08 19:23:39 +05:30
.form-group.float-left.global-notification-setting
2017-08-17 22:00:37 +05:30
= render 'shared/notifications/button', notification_setting: @global_notification_setting
2016-06-22 15:30:34 +05:30
.clearfix
2017-08-17 22:00:37 +05:30
= 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-06-02 11:05:42 +05:30
%hr
%h5
Groups (#{@group_notifications.count})
%div
%ul.bordered-list
- @group_notifications.each do |setting|
= render 'group_settings', setting: setting, group: setting.source
%h5
Projects (#{@project_notifications.count})
%p.account-well
To specify the notification level per project of a group you belong to, you need to visit project page and change notification level there.
.append-bottom-default
%ul.bordered-list
- @project_notifications.each do |setting|
= render 'project_settings', setting: setting, project: setting.source