debian-mirror-gitlab/app/views/projects/_visibility_select.html.haml

10 lines
489 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- if can_change_visibility_level?(@project, current_user)
2017-09-10 17:25:29 +05:30
.select-wrapper
= form.select(model_method, visibility_select_options(@project, selected_level), {}, class: 'form-control visibility-select select-control')
= icon('chevron-down')
2017-08-17 22:00:37 +05:30
- else
.info.js-locked{ data: { help_block: visibility_level_description(@project.visibility_level, @project) } }
= visibility_level_icon(@project.visibility_level)
%strong
= visibility_level_label(@project.visibility_level)