Commit cf3cdd48 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '33837-remove-trash-on-registry-image' into 'master'

Remove registry image delete button if user cant delete it

Closes #33837

See merge request !12317
parents f96562b1 1d85cc46
......@@ -6,13 +6,14 @@
= 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')
- if can?(current_user, :update_container_image, @project)
.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?
......
---
title: Remove registry image delete button if user cant delete it
merge_request: 12317
author: Ivan Chernov
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment