summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_tags/_tags_list.html.haml
blob: 728afd75b5056d0ae10a46d546fb58cfda3c65dc (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
.panel.panel-default.protected-tags-list.js-protected-tags-list
  - if @protected_tags.empty?
    .panel-heading
      %h3.panel-title
        Protected tag (#{@protected_tags.size})
    %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%" }
      %thead
        %tr
          %th Protected tag (#{@protected_tags.size})
          %th Last commit
          %th Allowed to create
          - if can_admin_project
            %th
      %tbody
        %tr
          %td.flash-container{ colspan: 4 }
        = render partial: 'projects/protected_tags/protected_tag', collection: @protected_tags, locals: { can_admin_project: can_admin_project}

    = paginate @protected_tags, theme: 'gitlab'