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

_tag.html.haml « repositories « registry « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4cde53e8c6d0bdc52221dc7405417780f1e8617 (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
%tr.tag
  %td
    = escape_once(tag.name)
    = clipboard_button(text: "docker pull #{tag.location}")
  %td
    - if tag.revision
      %span.has-tooltip{ title: "#{tag.revision}" }
        = tag.short_revision
    - else
      \-
  %td
    - if tag.total_size
      = number_to_human_size(tag.total_size)
      ·
      = pluralize(tag.layers.size, "layer")
    - else
      .light
        \-
  %td
    - if tag.created_at
      = time_ago_with_tooltip tag.created_at
    - else
      .light
        \-
  - if can?(current_user, :update_container_image, @project)
    %td.content
      .controls.d-none.d-sm-block.float-right
        = link_to project_registry_repository_tag_path(@project, tag.repository, tag.name),
                  method: :delete,
                  class: 'btn btn-remove has-tooltip',
                  title: 'Remove tag',
                  data: { confirm: 'Are you sure you want to delete this tag?' } do
          = icon('trash cred')