Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_visibility_radios.html.haml « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82ffdc9cd131ad2699aa377eeb9d05fe4c92ab47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- Gitlab::VisibilityLevel.values.each do |level|
  - disallowed = disallowed_visibility_level?(form_model, level)
  - restricted = restricted_visibility_levels.include?(level)
  - next if disallowed || restricted

  .form-check
    = form.radio_button model_method, level, checked: (selected_level == level), class: 'form-check-input', data: { track_label: "blank_project", track_event: "activate_form_input", track_property: "#{model_method}_#{level}", track_value: "" }
    = form.label "#{model_method}_#{level}", class: 'form-check-label' do
      = visibility_level_icon(level)
      .option-title
        = visibility_level_label(level)
      .option-description
        = visibility_level_description(level, form_model)

.text-muted
  - if all_visibility_levels_restricted?
    = _('Visibility settings have been disabled by the administrator.')
  - elsif multiple_visibility_levels_restricted?
    = _('Other visibility settings have been disabled by the administrator.')