Remove button to remove image

This image still can be removed with edit button.
This commit is contained in:
decabeza
2019-04-09 17:33:55 +02:00
parent 0517ae04a6
commit 4064fea1e5

View File

@@ -7,14 +7,6 @@
class: "button hollow" %>
<% end %>
<% if can_destroy_image?(proposal) %>
<%= link_to t("images.remove_image"),
image_path(proposal.image, from: request.url),
method: :delete,
class: "button hollow alert",
data: { confirm: t("images.actions.destroy.confirm") } %>
<% end %>
<% unless proposal.retired? %>
<%= link_to t("dashboard.index.retire"),
retire_form_proposal_path(proposal),