diff options
Diffstat (limited to 'app/views/settings/notifications/_group_settings.html.haml')
-rw-r--r-- | app/views/settings/notifications/_group_settings.html.haml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/settings/notifications/_group_settings.html.haml b/app/views/settings/notifications/_group_settings.html.haml new file mode 100644 index 00000000000..d0391609bb6 --- /dev/null +++ b/app/views/settings/notifications/_group_settings.html.haml @@ -0,0 +1,17 @@ +.gl-responsive-table-row.notification-list-item + .table-section.section-40 + %span.notification.fa.fa-holder.append-right-5 + - if setting.global? + = notification_icon(current_user.global_notification_setting.level) + - else + = notification_icon(setting.level) + + %span.str-truncated + = link_to group.name, group_path(group) + + .table-section.section-30.text-right + = render 'shared/notifications/button', notification_setting: setting + + .table-section.section-30 + = form_for @user.notification_settings.find { |ns| ns.source == group }, url: settings_notifications_group_path(group), method: :put, html: { class: 'update-notifications' } do |f| + = f.select :notification_email, @user.all_emails, { include_blank: 'Global notification email' }, class: 'select2 js-group-notification-email' |