2016-08-01 21:08:36 +00:00
|
|
|
.panel.panel-default
|
|
|
|
- if @protected_branches.empty?
|
|
|
|
%p.settings-message.text-center
|
|
|
|
No branches are protected, protect a branch with the form above.
|
|
|
|
- else
|
|
|
|
- can_admin_project = can?(current_user, :admin_project, @project)
|
2016-07-07 10:48:07 +00:00
|
|
|
|
2016-08-01 21:08:36 +00:00
|
|
|
%table.table.protected-branches-list.table-bordered
|
|
|
|
%colgroup
|
|
|
|
%col{ width: "20%" }
|
|
|
|
%col{ width: "30%" }
|
|
|
|
%col{ width: "25%" }
|
|
|
|
%col{ width: "25%" }
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Protected branch (#{@protected_branches.size})
|
|
|
|
%th Last commit
|
|
|
|
%th Allowed to merge
|
|
|
|
%th Allowed to push
|
|
|
|
- if can_admin_project
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
= render partial: @protected_branches, locals: { can_admin_project: can_admin_project }
|
2016-06-16 07:33:30 +00:00
|
|
|
|
2016-08-01 21:08:36 +00:00
|
|
|
= paginate @protected_branches, theme: 'gitlab'
|