From 4064fea1e5ba931fd5524612145d3b4816387be4 Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 9 Apr 2019 17:33:55 +0200 Subject: [PATCH] Remove button to remove image This image still can be removed with edit button. --- app/views/dashboard/show.html.erb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/views/dashboard/show.html.erb b/app/views/dashboard/show.html.erb index ce71dc6ad..952922517 100644 --- a/app/views/dashboard/show.html.erb +++ b/app/views/dashboard/show.html.erb @@ -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),