debian-mirror-gitlab/app/views/projects/protected_branches/shared/_branches_list.html.haml

30 lines
896 B
Text
Raw Normal View History

2018-10-15 14:42:47 +05:30
.protected-branches-list.js-protected-branches-list.qa-protected-branches-list
2017-09-10 17:25:29 +05:30
- if @protected_branches.empty?
2018-11-08 19:23:39 +05:30
.card-header.bg-white
2018-12-13 13:39:08 +05:30
Protected branch (#{@protected_branches_count})
2017-09-10 17:25:29 +05:30
%p.settings-message.text-center
There are currently no protected branches, protect a branch with the form above.
- else
%table.table.table-bordered
%colgroup
%col{ width: "20%" }
%col{ width: "20%" }
%col{ width: "20%" }
%col{ width: "20%" }
- if can_admin_project
%col
%thead
%tr
2018-05-09 12:01:36 +05:30
%th Protected branch (#{@protected_branches_count})
2017-09-10 17:25:29 +05:30
%th Last commit
%th Allowed to merge
%th Allowed to push
- if can_admin_project
%th
%tbody
%tr
%td.flash-container{ colspan: 5 }
= yield
= paginate @protected_branches, theme: 'gitlab'