diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-08-25 13:48:15 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-08-26 03:31:14 -0500 |
commit | 04e3e609daa54a62b0caf5a5ed5ade1cdb8c5eae (patch) | |
tree | 6d6710c3344e1a6d1c2514b0d3f1dfb8f2f3bf89 /app/views/shared/_visibility_radios.html.haml | |
parent | 10a7478ed0b9cbc4b3d4a316f4e124796dbac495 (diff) | |
download | gitlab-ce-04e3e609daa54a62b0caf5a5ed5ade1cdb8c5eae.tar.gz |
show alternate description text for disabled visibility settings
Diffstat (limited to 'app/views/shared/_visibility_radios.html.haml')
-rw-r--r-- | app/views/shared/_visibility_radios.html.haml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/shared/_visibility_radios.html.haml b/app/views/shared/_visibility_radios.html.haml index d8d1093d4e3..8a80ccd4030 100644 --- a/app/views/shared/_visibility_radios.html.haml +++ b/app/views/shared/_visibility_radios.html.haml @@ -8,9 +8,10 @@ = visibility_level_icon(level) .option-title = visibility_level_label(level) - .option-descr + .option-description = visibility_level_description(level, form_model) -- unless restricted_visibility_levels.empty? - %div - %span.info - Some visibility level settings have been restricted by the administrator. + .option-disabled-reason + - if restricted + This visibility level has been restricted by the administrator. + - elsif disallowed + This option is not available the visibility of parent or child items prevents it. |