55be351f81
When the administrator restrict visibility options the information message break the buttons layout. Change the message style.
15 lines
638 B
Text
15 lines
638 B
Text
- Gitlab::VisibilityLevel.values.each do |level|
|
|
- next if skip_level?(form_model, level)
|
|
.radio
|
|
- restricted = restricted_visibility_levels.include?(level)
|
|
= form.label "#{model_method}_#{level}" do
|
|
= form.radio_button model_method, level, checked: (selected_level == level), disabled: restricted
|
|
= visibility_level_icon(level)
|
|
.option-title
|
|
= visibility_level_label(level)
|
|
.option-descr
|
|
= visibility_level_description(level, form_model)
|
|
- unless restricted_visibility_levels.empty?
|
|
%div
|
|
%span.info
|
|
Some visibility level settings have been restricted by the administrator.
|