gitlab-org--gitlab-foss/app/views/projects/container_registry/_tag.html.haml

22 lines
758 B
Plaintext
Raw Normal View History

2016-05-09 20:32:18 +00:00
%tr.tag
%td
= escape_once(tag.name)
= clipboard_button(clipboard_text: "docker pull #{tag.path}")
%td
- if layer = tag.layers.first
2016-05-16 22:29:14 +00:00
%span.has-tooltip{ title: "#{layer.revision}" }
2016-05-09 20:32:18 +00:00
= layer.short_revision
- else
\-
%td
= number_to_human_size(tag.total_size)
·
= pluralize(tag.layers.size, "layer")
%td
= time_ago_in_words(tag.created_at)
- if can?(current_user, :update_container_image, @project)
2016-05-12 18:03:04 +00:00
%td.content
.controls.hidden-xs.pull-right
= link_to namespace_project_container_registry_path(@project.namespace, @project, tag.name), class: 'btn btn-remove has-tooltip', title: "Remove", data: { confirm: "Are you sure?" }, method: :delete do
= icon("trash cred")