summaryrefslogtreecommitdiff
path: root/app/views/groups
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-08-31 22:58:05 -0700
committerMichael Kozono <mkozono@gmail.com>2017-09-06 12:07:20 -0700
commit8437a24ff46220e2813ce3d82a52062dd259276b (patch)
treec132cfe1a881a9aa7b2eb5794e0c983ebf9dfce9 /app/views/groups
parentc93e8f246a3ade5e60e770533393ed1a6df91731 (diff)
downloadgitlab-ce-8437a24ff46220e2813ce3d82a52062dd259276b.tar.gz
Vary share lock setting UI
…based on whether the current user owns the parent group and whether the parent group or current group is share locked.
Diffstat (limited to 'app/views/groups')
-rw-r--r--app/views/groups/edit.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/groups/edit.html.haml b/app/views/groups/edit.html.haml
index b53f0b90b9c..fb7825b82fc 100644
--- a/app/views/groups/edit.html.haml
+++ b/app/views/groups/edit.html.haml
@@ -33,13 +33,13 @@
.col-sm-10
.checkbox
= f.label :share_with_group_lock do
- = f.check_box :share_with_group_lock
+ = f.check_box :share_with_group_lock, disabled: share_with_group_lock_disabled
%strong
Prevent sharing a project within
= @group.name
with other groups
%br/
- %span.descr This setting will be applied to all subgroups unless overridden by a group owner
+ %span.descr= share_with_group_lock_help_text
= render 'group_admin_settings', f: f