debian-mirror-gitlab/app/views/shared/_visibility_level.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
1,010 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- with_label = local_assigns.fetch(:with_label, true)
2018-12-13 13:39:08 +05:30
.form-group.visibility-level-setting
2017-08-17 22:00:37 +05:30
- if with_label
2020-06-23 00:09:42 +05:30
= f.label :visibility_level, _('Visibility level'), class: 'label-bold gl-mb-0'
2018-12-13 13:39:08 +05:30
%p
= _('Who can see this group?')
- visibility_docs_path = help_page_path('public_access/public_access')
- docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: visibility_docs_path }
2021-11-11 11:23:49 +05:30
= _('%{docs_link_start}Learn about visibility levels.%{docs_link_end}').html_safe % { docs_link_start: docs_link_start, docs_link_end: '</a>'.html_safe }
2018-12-13 13:39:08 +05:30
- if can_change_visibility_level
= render('shared/visibility_radios', model_method: :visibility_level, form: f, selected_level: visibility_level, form_model: form_model)
- else
%div
%span.info
= visibility_level_icon(visibility_level)
%strong
= visibility_level_label(visibility_level)
.light= visibility_level_description(visibility_level, form_model)