BigW Consortium Gitlab

_visibility_level.html.haml 1.17 KB
Newer Older
1
.form-group.project-visibility-level-holder
2
  = f.label :visibility_level, class: 'control-label' do
3 4
    Visibility Level
    = link_to "(?)", help_public_access_path
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  .col-sm-10
    - if can_change_visibility_level
      - Gitlab::VisibilityLevel.values.each do |level|
        .append-bottom-10
          - restricted = restricted_visibility_levels.include?(level)
          = f.radio_button :visibility_level, level, checked: (visibility_level == level), disabled: restricted
          %span.descr{:class => ("restricted" if restricted)}
            = label :project_visibility_level, level do
              = visibility_level_icon(level)
              %strong
                = visibility_level_label(level)
            .light.prepend-left-20= visibility_level_description(level)
      - unless restricted_visibility_levels.empty?
        .col-sm-10
          %span.info
            Some visibility level settings have been restricted by the administrator.
    - else
22
      .col-sm-10
23
        %span.info
24 25 26 27
          = visibility_level_icon(visibility_level)
          %strong
            = visibility_level_label(visibility_level)
          .light= visibility_level_description(visibility_level)