diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-04 12:46:14 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-04 12:46:28 +0300 |
commit | 008441c49e493b885586ba38993f54bdcb03799c (patch) | |
tree | cca3972ce99d897090359945df32d68c9621bdde /app/views/projects/registry | |
parent | 7e46d0a95fc4ce8d0d66e75e6b1c4ef473606e79 (diff) |
Improve container registry repository view partials
Diffstat (limited to 'app/views/projects/registry')
-rw-r--r-- | app/views/projects/registry/repositories/_image.html.haml | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/app/views/projects/registry/repositories/_image.html.haml b/app/views/projects/registry/repositories/_image.html.haml index c3f8580d25b..e0d74789207 100644 --- a/app/views/projects/registry/repositories/_image.html.haml +++ b/app/views/projects/registry/repositories/_image.html.haml @@ -1,29 +1,21 @@ -- expanded = false .container-image.js-toggle-container .container-image-head = link_to "#", class: "js-toggle-button" do - - if expanded - = icon("chevron-up") - - else - = icon("chevron-down") - + = icon("chevron-down") = escape_once(image.path) + = clipboard_button(clipboard_text: "docker pull #{image.path}") + .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") - - - .container-image-tags.js-toggle-content{ class: ("hide" unless expanded) } - - if image.tags.blank? - %li - .nothing-here-block No tags in Container Registry for this container image. + = icon('trash cred') - - else + .container-image-tags.js-toggle-content{ class: 'hide' } + - if image.has_tags? .table-holder %table.table.tags %thead @@ -34,5 +26,8 @@ %th Created - if can?(current_user, :update_container_image, @project) %th - = render partial: 'tag', collection: image.tags + - else + %li + .nothing-here-block No tags in Container Registry for this container image. + |