summaryrefslogtreecommitdiff
path: root/app/views/projects/_visibility_select.html.haml
blob: 4026b9e3c46d6f1e0b6b8a9b5305ed80959013e2 (plain)
1
2
3
4
5
6
7
8
9
- if can_change_visibility_level?(@project, current_user)
  .select-wrapper
    = form.select(model_method, visibility_select_options(@project, selected_level), {}, class: 'form-control visibility-select select-control')
    = icon('chevron-down')
- 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)