Fixing minor view issues

This commit is contained in:
Andre Guedes 2017-01-25 10:02:09 -02:00
parent b408a192e0
commit ea17df5c4c
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
= icon("chevron-down")
= escape_once(image.name)
= clipboard_button(clipboard_text: "docker pull #{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.id), class: 'btn btn-remove has-tooltip', title: "Remove image", data: { confirm: "Are you sure?" }, method: :delete do
= icon("trash cred")
@ -24,8 +24,8 @@
%table.table.tags
%thead
%tr
%th Name
%th Image ID
%th Tag
%th Tag ID
%th Size
%th Created
- if can?(current_user, :update_container_image, @project)

View File

@ -25,5 +25,5 @@
- if can?(current_user, :update_container_image, @project)
%td.content
.controls.hidden-xs.pull-right
= link_to namespace_project_container_registry_path(@project.namespace, @project, { id: tag.repository.id, tag: tag.name} ), class: 'btn btn-remove has-tooltip', title: "Remove tag", data: { confirm: "Are you sure?" }, method: :delete do
= link_to namespace_project_container_registry_path(@project.namespace, @project, { id: tag.repository.id, tag: tag.name} ), class: 'btn btn-remove has-tooltip', title: "Remove tag", data: { confirm: "Due to a Docker limitation, all tags with the same ID will also be deleted. Are you sure?" }, method: :delete do
= icon("trash cred")

View File

@ -15,9 +15,9 @@
%br
Then you are free to create and upload a container image with build and push commands:
%pre
docker build -t #{escape_once(@project.container_registry_url)} .
docker build -t #{escape_once(@project.container_registry_url)}/image .
%br
docker push #{escape_once(@project.container_registry_url)}
docker push #{escape_once(@project.container_registry_url)}/image
- if @images.blank?
.nothing-here-block No container images in Container Registry for this project.