Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-25 23:01:56 +0300
committerMike Greiling <mike@pixelcog.com>2017-08-26 11:31:14 +0300
commitfc95395c5dc8b297e831a51bcec04c0644eb06d2 (patch)
tree839e5dcba78fe57f45c84472fc5d8154f071ca34 /app/views/shared/_visibility_radios.html.haml
parent8cf504a71c326033a5a0885fa950a7d2c37ca93c (diff)
display specific reasons when visibility options are disabled
Diffstat (limited to 'app/views/shared/_visibility_radios.html.haml')
-rw-r--r--app/views/shared/_visibility_radios.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/_visibility_radios.html.haml b/app/views/shared/_visibility_radios.html.haml
index 13eeaeefa9f..4a656ccfeac 100644
--- a/app/views/shared/_visibility_radios.html.haml
+++ b/app/views/shared/_visibility_radios.html.haml
@@ -12,6 +12,6 @@
= visibility_level_description(level, form_model)
.option-disabled-reason
- if restricted
- This visibility level has been restricted by the administrator.
+ = restricted_visibility_level_description(level)
- elsif disallowed
- This option is not available the visibility of parent or child items prevents it.
+ = disallowed_visibility_level_description(level, form_model)