Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 17:22:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 17:22:11 +0300
commit0c872e02b2c822e3397515ec324051ff540f0cd5 (patch)
treece2fb6ce7030e4dad0f4118d21ab6453e5938cdd /app/views/protected_branches/shared/_branches_list.html.haml
parentf7e05a6853b12f02911494c4b3fe53d9540d74fc (diff)
Add latest changes from gitlab-org/gitlab@15-7-stable-eev15.7.0-rc42
Diffstat (limited to 'app/views/protected_branches/shared/_branches_list.html.haml')
-rw-r--r--app/views/protected_branches/shared/_branches_list.html.haml38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/views/protected_branches/shared/_branches_list.html.haml b/app/views/protected_branches/shared/_branches_list.html.haml
new file mode 100644
index 00000000000..d041f9c5b48
--- /dev/null
+++ b/app/views/protected_branches/shared/_branches_list.html.haml
@@ -0,0 +1,38 @@
+.protected-branches-list.js-protected-branches-list{ data: { testid: 'protected-branches-list' } }
+ - if @protected_branches.empty?
+ .card-header.bg-white
+ = s_("ProtectedBranch|Protected branch (%{protected_branches_count})") % { protected_branches_count: 0 }
+ %p.settings-message.text-center
+ = s_("ProtectedBranch|There are currently no protected branches, protect a branch with the form above.")
+ - else
+ .flash-container
+ %table.table.table-bordered
+ %colgroup
+ %col{ width: "30%" }
+ %col{ width: "20%" }
+ %col{ width: "20%" }
+ %col{ width: "10%" }
+ %col{ width: "10%" }
+ - if can_admin_project
+ %col
+ %thead
+ %tr
+ %th
+ = s_("ProtectedBranch|Branch")
+ %th
+ = s_("ProtectedBranch|Allowed to merge")
+ %th
+ = s_("ProtectedBranch|Allowed to push")
+ %th
+ = s_("ProtectedBranch|Allowed to force push")
+ %span.has-tooltip{ data: { container: 'body' }, title: s_('ProtectedBranch|Allow all users with push access to force push.'), 'aria-hidden': 'true' }
+ = sprite_icon('question', size: 16, css_class: 'gl-text-gray-500')
+
+ = render_if_exists 'protected_branches/ee/code_owner_approval_table_head'
+
+ - if can_admin_project
+ %th
+ %tbody
+ = yield
+
+ = paginate @protected_branches, theme: 'gitlab'