2016-08-03 21:45:38 +00:00
|
|
|
.panel.panel-default.protected-branches-list
|
2016-08-01 21:08:36 +00:00
|
|
|
- if @protected_branches.empty?
|
2016-08-03 21:45:38 +00:00
|
|
|
.panel-heading
|
2016-08-05 20:59:52 +00:00
|
|
|
%h3.panel-title
|
|
|
|
Protected branch (#{@protected_branches.size})
|
2016-08-01 21:08:36 +00:00
|
|
|
%p.settings-message.text-center
|
2016-08-05 16:39:32 +00:00
|
|
|
There are currently no protected branches, protect a branch with the form above.
|
2016-08-01 21:08:36 +00:00
|
|
|
- else
|
|
|
|
- can_admin_project = can?(current_user, :admin_project, @project)
|
2016-07-07 10:48:07 +00:00
|
|
|
|
2016-08-03 21:45:38 +00:00
|
|
|
%table.table.table-bordered
|
2016-08-01 21:08:36 +00:00
|
|
|
%colgroup
|
|
|
|
%col{ width: "25%" }
|
2016-08-03 21:45:38 +00:00
|
|
|
%col{ width: "30%" }
|
2016-08-01 21:08:36 +00:00
|
|
|
%col{ width: "25%" }
|
2016-08-03 21:45:38 +00:00
|
|
|
%col{ width: "20%" }
|
2016-08-01 21:08:36 +00:00
|
|
|
%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
|
2017-01-24 00:28:40 +00:00
|
|
|
= render partial: 'projects/protected_branches/protected_branch', collection: @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'
|