2016-11-23 11:50:30 -05:00
|
|
|
.container-image.js-toggle-container
|
|
|
|
.container-image-head
|
|
|
|
= link_to "#", class: "js-toggle-button" do
|
2017-04-05 08:37:50 -04:00
|
|
|
= icon('chevron-down', 'aria-hidden': 'true')
|
2017-03-30 09:41:35 -04:00
|
|
|
= escape_once(image.path)
|
2017-04-04 05:46:14 -04:00
|
|
|
|
2017-04-10 07:29:30 -04:00
|
|
|
= clipboard_button(clipboard_text: "docker pull #{image.location}")
|
2017-04-04 05:46:14 -04:00
|
|
|
|
2017-06-20 14:12:46 -04:00
|
|
|
- if can?(current_user, :update_container_image, @project)
|
|
|
|
.controls.hidden-xs.pull-right
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to project_container_registry_path(@project, image),
|
2017-06-20 14:12:46 -04:00
|
|
|
class: 'btn btn-remove has-tooltip',
|
|
|
|
title: 'Remove repository',
|
|
|
|
data: { confirm: 'Are you sure?' },
|
|
|
|
method: :delete do
|
|
|
|
= icon('trash cred', 'aria-hidden': 'true')
|
2016-11-23 11:50:30 -05:00
|
|
|
|
2017-04-04 09:41:38 -04:00
|
|
|
.container-image-tags.js-toggle-content.hide
|
2017-04-04 05:46:14 -04:00
|
|
|
- if image.has_tags?
|
2016-11-23 11:50:30 -05:00
|
|
|
.table-holder
|
|
|
|
%table.table.tags
|
|
|
|
%thead
|
|
|
|
%tr
|
2017-01-25 07:02:09 -05:00
|
|
|
%th Tag
|
|
|
|
%th Tag ID
|
2016-11-23 11:50:30 -05:00
|
|
|
%th Size
|
|
|
|
%th Created
|
|
|
|
- if can?(current_user, :update_container_image, @project)
|
|
|
|
%th
|
2017-03-21 09:35:02 -04:00
|
|
|
= render partial: 'tag', collection: image.tags
|
2017-04-04 05:46:14 -04:00
|
|
|
- else
|
2017-04-05 08:37:50 -04:00
|
|
|
.nothing-here-block No tags in Container Registry for this container image.
|