summaryrefslogtreecommitdiff
path: root/app/views/projects/registry/repositories/_image.html.haml
blob: 8bc78f8d0185e94d5dd998218d766eb9771a86aa (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
.container-image.js-toggle-container
  .container-image-head
    = link_to "#", class: "js-toggle-button" do
      = icon('chevron-down', 'aria-hidden': 'true')
      = escape_once(image.path)

    = clipboard_button(clipboard_text: "docker pull #{image.location}")

    .controls.hidden-xs.pull-right
      = link_to namespace_project_container_registry_path(@project.namespace, @project, image),
                class: 'btn btn-remove has-tooltip',
                title: 'Remove repository',
                data: { confirm: 'Are you sure?' },
                method: :delete do
        = icon('trash cred', 'aria-hidden': 'true')

  .container-image-tags.js-toggle-content.hide
    - if image.has_tags?
      .table-holder
        %table.table.tags
          %thead
            %tr
              %th Tag
              %th Tag ID
              %th Size
              %th Created
              - if can?(current_user, :update_container_image, @project)
                %th
          = render partial: 'tag', collection: image.tags
    - else
      .nothing-here-block No tags in Container Registry for this container image.