debian-mirror-gitlab/app/views/projects/registry/repositories/_tag.html.haml

34 lines
957 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
%tr.tag
%td
= escape_once(tag.name)
2019-09-04 21:01:54 +05:30
= clipboard_button(text: "#{tag.location}")
2016-06-02 11:05:42 +05:30
%td
2016-06-22 15:30:34 +05:30
- if tag.revision
%span.has-tooltip{ title: "#{tag.revision}" }
= tag.short_revision
2016-06-02 11:05:42 +05:30
- else
\-
%td
- if tag.total_size
= number_to_human_size(tag.total_size)
·
= pluralize(tag.layers.size, "layer")
- else
.light
\-
2016-06-02 11:05:42 +05:30
%td
- if tag.created_at
2018-10-15 14:42:47 +05:30
= time_ago_with_tooltip tag.created_at
- else
.light
\-
2016-06-02 11:05:42 +05:30
- if can?(current_user, :update_container_image, @project)
%td.content
2018-11-08 19:23:39 +05:30
.controls.d-none.d-sm-block.float-right
2017-09-10 17:25:29 +05:30
= link_to project_registry_repository_tag_path(@project, tag.repository, tag.name),
2017-08-17 22:00:37 +05:30
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')