Commit 04e3e609 authored by Mike Greiling's avatar Mike Greiling

show alternate description text for disabled visibility settings

parent 10a7478e
...@@ -158,15 +158,28 @@ ...@@ -158,15 +158,28 @@
color: $gl-text-color; color: $gl-text-color;
} }
.option-descr { .option-description,
.option-disabled-reason {
margin-left: 29px; margin-left: 29px;
color: $project-option-descr-color; color: $project-option-descr-color;
} }
.option-disabled-reason {
display: none;
}
&.disabled { &.disabled {
i.fa { i.fa {
opacity: 0.5; opacity: 0.5;
} }
.option-description {
display: none;
}
.option-disabled-reason {
display: block;
}
} }
} }
} }
......
...@@ -8,9 +8,10 @@ ...@@ -8,9 +8,10 @@
= visibility_level_icon(level) = visibility_level_icon(level)
.option-title .option-title
= visibility_level_label(level) = visibility_level_label(level)
.option-descr .option-description
= visibility_level_description(level, form_model) = visibility_level_description(level, form_model)
- unless restricted_visibility_levels.empty? .option-disabled-reason
%div - if restricted
%span.info This visibility level has been restricted by the administrator.
Some visibility level settings have been restricted by the administrator. - elsif disallowed
This option is not available the visibility of parent or child items prevents it.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment