2016-04-26 14:50:31 +00:00
|
|
|
%h5.prepend-top-0
|
2016-06-16 07:33:30 +00:00
|
|
|
Already Protected (#{@protected_branches.size})
|
|
|
|
- if @protected_branches.empty?
|
2016-05-16 14:40:44 +00:00
|
|
|
%p.settings-message.text-center
|
2016-04-26 14:50:31 +00:00
|
|
|
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
|
|
|
|
|
|
|
%table.table.protected-branches-list
|
|
|
|
%colgroup
|
|
|
|
%col{ width: "20%" }
|
|
|
|
%col{ width: "30%" }
|
|
|
|
%col{ width: "25%" }
|
|
|
|
%col{ width: "25%" }
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Branch
|
|
|
|
%th Last commit
|
|
|
|
%th Allowed to Merge
|
|
|
|
%th Allowed to Push
|
2016-04-26 14:50:31 +00:00
|
|
|
- if can_admin_project
|
2016-07-07 10:48:07 +00:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
= render partial: @protected_branches, locals: { can_admin_project: can_admin_project }
|
2016-06-16 07:33:30 +00:00
|
|
|
|
|
|
|
= paginate @protected_branches, theme: 'gitlab'
|
2016-07-07 10:48:07 +00:00
|
|
|
|
|
|
|
:javascript
|
2016-07-08 07:30:38 +00:00
|
|
|
new ProtectedBranchesAccessSelect($(".protected-branches-list"), true);
|