2013-12-30 18:27:02 -05:00
|
|
|
.form-group.project-visibility-level-holder
|
2013-12-31 09:01:25 -05:00
|
|
|
= f.label :visibility_level, class: 'control-label' do
|
2013-11-27 06:13:33 -05:00
|
|
|
Visibility Level
|
|
|
|
= link_to "(?)", help_public_access_path
|
2013-12-31 09:01:25 -05:00
|
|
|
.col-sm-10
|
|
|
|
- if can_change_visibility_level
|
|
|
|
- Gitlab::VisibilityLevel.values.each do |level|
|
2014-01-08 11:39:03 -05:00
|
|
|
.radio
|
2013-12-31 09:01:25 -05:00
|
|
|
- restricted = restricted_visibility_levels.include?(level)
|
|
|
|
= f.radio_button :visibility_level, level, checked: (visibility_level == level), disabled: restricted
|
2014-01-08 11:39:03 -05:00
|
|
|
= label :project_visibility_level, level do
|
|
|
|
= visibility_level_icon(level)
|
|
|
|
.option-title
|
|
|
|
= visibility_level_label(level)
|
|
|
|
.option-descr
|
|
|
|
= visibility_level_description(level)
|
2013-12-31 09:01:25 -05:00
|
|
|
- unless restricted_visibility_levels.empty?
|
|
|
|
.col-sm-10
|
|
|
|
%span.info
|
|
|
|
Some visibility level settings have been restricted by the administrator.
|
|
|
|
- else
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2013-11-06 10:13:21 -05:00
|
|
|
%span.info
|
2013-12-31 09:01:25 -05:00
|
|
|
= visibility_level_icon(visibility_level)
|
|
|
|
%strong
|
|
|
|
= visibility_level_label(visibility_level)
|
|
|
|
.light= visibility_level_description(visibility_level)
|