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

34 lines
1.1 KiB
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
2019-12-21 20:55:43 +05:30
= s_("ProtectedBranch|Protected branch (%{protected_branches_count})") % { protected_branches_count: @protected_branches_count }
2017-09-10 17:25:29 +05:30
%p.settings-message.text-center
2019-12-21 20:55:43 +05:30
= s_("ProtectedBranch|There are currently no protected branches, protect a branch with the form above.")
2017-09-10 17:25:29 +05:30
- else
2019-12-26 22:10:19 +05:30
.flash-container
2017-09-10 17:25:29 +05:30
%table.table.table-bordered
%colgroup
%col{ width: "20%" }
%col{ width: "20%" }
%col{ width: "20%" }
%col{ width: "20%" }
- if can_admin_project
%col
%thead
%tr
2019-12-21 20:55:43 +05:30
%th
= s_("ProtectedBranch|Branch")
%th
= s_("ProtectedBranch|Allowed to merge")
%th
= s_("ProtectedBranch|Allowed to push")
= render_if_exists 'projects/protected_branches/ee/code_owner_approval_table_head'
2017-09-10 17:25:29 +05:30
- if can_admin_project
%th
%tbody
= yield
= paginate @protected_branches, theme: 'gitlab'