Remove registry image delete button if user cant delete it
This commit is contained in:
parent
b2e1d32e7a
commit
1d85cc462b
|
@ -6,13 +6,14 @@
|
||||||
|
|
||||||
= clipboard_button(clipboard_text: "docker pull #{image.location}")
|
= clipboard_button(clipboard_text: "docker pull #{image.location}")
|
||||||
|
|
||||||
.controls.hidden-xs.pull-right
|
- if can?(current_user, :update_container_image, @project)
|
||||||
= link_to namespace_project_container_registry_path(@project.namespace, @project, image),
|
.controls.hidden-xs.pull-right
|
||||||
class: 'btn btn-remove has-tooltip',
|
= link_to namespace_project_container_registry_path(@project.namespace, @project, image),
|
||||||
title: 'Remove repository',
|
class: 'btn btn-remove has-tooltip',
|
||||||
data: { confirm: 'Are you sure?' },
|
title: 'Remove repository',
|
||||||
method: :delete do
|
data: { confirm: 'Are you sure?' },
|
||||||
= icon('trash cred', 'aria-hidden': 'true')
|
method: :delete do
|
||||||
|
= icon('trash cred', 'aria-hidden': 'true')
|
||||||
|
|
||||||
.container-image-tags.js-toggle-content.hide
|
.container-image-tags.js-toggle-content.hide
|
||||||
- if image.has_tags?
|
- if image.has_tags?
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Remove registry image delete button if user cant delete it
|
||||||
|
merge_request: 12317
|
||||||
|
author: Ivan Chernov
|
Loading…
Reference in New Issue