File: _branches_list.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (34 lines) | stat: -rw-r--r-- 1,327 bytes parent folder | download
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
.protected-branches-list.js-protected-branches-list{ data: { testid: 'protected-branches-list' } }
  - if @protected_branches.empty?
    %p.gl-text-subtle
      = s_("ProtectedBranch|There are currently no protected branches, to protect a branch start by creating a new one above.")
  - else
    .flash-container
    %table.table.b-table.gl-table.b-table-stacked-md
      %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 and merge")
          %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-o', size: 16, css_class: 'gl-text-blue-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