summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_tags/shared/_tags_list.html.haml
blob: 3ed82e51dbe97618b113bb5d443c99b673115c98 (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
.protected-tags-list.js-protected-tags-list
  - if @protected_tags.empty?
    .panel-heading
      %h3.panel-title
        Protected tag (#{@protected_tags_count})
    %p.settings-message.text-center
      There are currently no protected tags, protect a tag with the form above.
  - else
    - can_admin_project = can?(current_user, :admin_project, @project)

    %table.table.table-bordered
      %colgroup
        %col{ width: "25%" }
        %col{ width: "25%" }
        %col{ width: "50%" }
        - if can_admin_project
          %col
      %thead
        %tr
          %th Protected tag (#{@protected_tags_count})
          %th Last commit
          %th Allowed to create
          - if can_admin_project
            %th
      %tbody
        %tr
          %td.flash-container{ colspan: 4 }
        = yield

    = paginate @protected_tags, theme: 'gitlab'