summaryrefslogtreecommitdiff
path: root/app/views/groups/_home_panel.html.haml
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-08-17 05:56:48 +0000
committerPaul Slaughter <pslaughter@gitlab.com>2019-08-17 05:56:48 +0000
commit9be16e1f495655e68bc980fced9a8075223ccccf (patch)
treec3ac8db7b555e7b4aef5d1d9f12eb08ad17dd5dd /app/views/groups/_home_panel.html.haml
parent9eabc0d6fc268023db13e8dad315f99f4fe1a6da (diff)
downloadgitlab-ce-9be16e1f495655e68bc980fced9a8075223ccccf.tar.gz
UI for disabling group/project email notification
- Adds UI to configure in group and project settings - Removes notification configuration for users when disabled at group or project level
Diffstat (limited to 'app/views/groups/_home_panel.html.haml')
-rw-r--r--app/views/groups/_home_panel.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/groups/_home_panel.html.haml b/app/views/groups/_home_panel.html.haml
index 4daf3683eaf..e50d2b8e994 100644
--- a/app/views/groups/_home_panel.html.haml
+++ b/app/views/groups/_home_panel.html.haml
@@ -1,4 +1,5 @@
- can_create_subgroups = can?(current_user, :create_subgroup, @group)
+- emails_disabled = @group.emails_disabled?
.group-home-panel
.row.mb-3
@@ -21,7 +22,7 @@
.home-panel-buttons.col-md-12.col-lg-6.d-inline-flex.flex-wrap.justify-content-lg-end
- if current_user
.group-buttons
- = render 'shared/notifications/new_button', notification_setting: @notification_setting, btn_class: 'btn'
+ = render 'shared/notifications/new_button', notification_setting: @notification_setting, btn_class: 'btn', emails_disabled: emails_disabled
- if can? current_user, :create_projects, @group
- new_project_label = _("New project")
- new_subgroup_label = _("New subgroup")