Files
grecia/app/views/dashboard/show.html.erb
decabeza 4064fea1e5 Remove button to remove image
This image still can be removed with edit button.
2019-04-24 13:57:08 +02:00

23 lines
710 B
Plaintext

<% content_for :action_title, t("dashboard.index.title") %>
<% if current_editable?(proposal) %>
<%= link_to t("dashboard.index.edit_proposal_link"),
edit_proposal_path(proposal),
target: "_blank",
class: "button hollow" %>
<% end %>
<% unless proposal.retired? %>
<%= link_to t("dashboard.index.retire"),
retire_form_proposal_path(proposal),
class: "button hollow alert",
target: "_blank" %>
<% end %>
<% if can?(:publish, proposal) %>
<%= link_to t("dashboard.index.publish"),
publish_proposal_dashboard_path(proposal),
class: "button success",
method: :patch %>
<% end %>