2016-06-02 11:05:42 +05:30
|
|
|
%h5.prepend-top-0
|
2016-08-24 12:49:21 +05:30
|
|
|
Already Protected (#{@protected_branches.size})
|
|
|
|
- if @protected_branches.empty?
|
2016-06-02 11:05:42 +05:30
|
|
|
%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)
|
|
|
|
.table-responsive
|
2015-11-26 14:37:03 +05:30
|
|
|
%table.table.protected-branches-list
|
2016-06-02 11:05:42 +05:30
|
|
|
%colgroup
|
2016-08-24 12:49:21 +05:30
|
|
|
%col{ width: "20%" }
|
2016-06-02 11:05:42 +05:30
|
|
|
%col{ width: "30%" }
|
2016-08-24 12:49:21 +05:30
|
|
|
%col{ width: "25%" }
|
2016-06-02 11:05:42 +05:30
|
|
|
%col{ width: "25%" }
|
|
|
|
- if can_admin_project
|
|
|
|
%col
|
2015-11-26 14:37:03 +05:30
|
|
|
%thead
|
2016-06-02 11:05:42 +05:30
|
|
|
%tr
|
2016-08-24 12:49:21 +05:30
|
|
|
%th Protected Branch
|
|
|
|
%th Commit
|
|
|
|
%th Developers Can Push
|
|
|
|
%th Developers Can Merge
|
2016-06-02 11:05:42 +05:30
|
|
|
- if can_admin_project
|
|
|
|
%th
|
2015-11-26 14:37:03 +05:30
|
|
|
%tbody
|
2016-08-24 12:49:21 +05:30
|
|
|
= render partial: @protected_branches, locals: { can_admin_project: can_admin_project }
|
|
|
|
|
|
|
|
= paginate @protected_branches, theme: 'gitlab'
|