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

_branches_list.html.haml « shared « protected_branches « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c35895e000c2ba9b1fec5e447796628b1477aa3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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_entity
          %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', protected_branch_entity: protected_branch_entity

          - if can_admin_entity
            %th
      %tbody
        = yield

    = paginate @protected_branches, theme: 'gitlab'