diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-08-25 23:01:56 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-08-26 11:31:14 +0300 |
commit | fc95395c5dc8b297e831a51bcec04c0644eb06d2 (patch) | |
tree | 839e5dcba78fe57f45c84472fc5d8154f071ca34 /app/views/shared/_visibility_radios.html.haml | |
parent | 8cf504a71c326033a5a0885fa950a7d2c37ca93c (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.haml | 4 |
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) |