_tag.html.haml 983 字节
Newer Older
1 2 3
%tr.tag
  %td
    = escape_once(tag.name)
D
Douwe Maan 已提交
4
    = clipboard_button(text: "docker pull #{tag.path}")
5
  %td
6 7 8
    - if tag.revision
      %span.has-tooltip{ title: "#{tag.revision}" }
        = tag.short_revision
9 10 11
    - else
      \-
  %td
12 13 14 15 16 17 18
    - if tag.total_size
      = number_to_human_size(tag.total_size)
      ·
      = pluralize(tag.layers.size, "layer")
    - else
      .light
        \-
19
  %td
20 21 22 23 24
    - if tag.created_at
      = time_ago_in_words(tag.created_at)
    - else
      .light
        \-
25
  - if can?(current_user, :update_container_image, @project)
K
Kamil Trzcinski 已提交
26 27
    %td.content
      .controls.hidden-xs.pull-right
28 29 30
        = link_to namespace_project_registry_repository_tag_path(@project.namespace, @project, tag.repository, tag.name),
                  method: :delete,
                  class: 'btn btn-remove has-tooltip',
31
                  title: 'Remove tag',
32
                  data: { confirm: 'Are you sure you want to delete this tag?' } do
33
          = icon('trash cred')