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

74 lines
2.7 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Notifications"
2015-09-25 12:07:36 +05:30
2016-06-02 11:05:42 +05:30
%div
- if @user.errors.any?
2015-04-26 12:48:37 +05:30
%div.alert.alert-danger
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
2014-09-02 18:07:02 +05:30
= hidden_field_tag :notification_type, 'global'
2016-06-02 11:05:42 +05:30
.row
.col-lg-3.profile-settings-sidebar
%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.
.col-lg-9
%h5
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|
.form-group
= f.label :notification_email, class: "label-light"
= f.select :notification_email, @user.all_emails, { include_blank: false }, class: "select2"
.form-group
= f.label :notification_level, class: 'label-light'
.radio
= f.label :notification_level, value: :disabled do
= f.radio_button :notification_level, :disabled
.level-title
Disabled
%p You will not get any notifications via email
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
.radio
= f.label :notification_level, value: :mention do
= f.radio_button :notification_level, :mention
.level-title
On Mention
%p You will receive notifications only for comments in which you were @mentioned
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
.radio
= f.label :notification_level, value: :participating do
= f.radio_button :notification_level, :participating
.level-title
Participating
%p You will only receive notifications from related resources (e.g. from your commits or assigned issues)
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
.radio
= f.label :notification_level, value: :watch do
= f.radio_button :notification_level, :watch
.level-title
Watch
%p You will receive notifications for any activity
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
.prepend-top-default
= f.submit 'Update settings', class: "btn btn-create"
%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