<%= link_to proposal.title, proposal, proposal.retired? ? { class: "retired" } : {} %>
<%= proposal.summary %>
|
<% if proposal.retired? %>
<%= t("users.proposals.retired") %>
|
<% elsif author?(proposal) %>
<%= link_to t("users.proposals.send_notification"),
new_proposal_notification_path(proposal_id: proposal.id),
class: "button hollow expanded" %>
|
<% if proposal.retired? %>
<%= t("users.proposals.retired") %>
<% else %>
<%= link_to t("users.proposals.retire"),
retire_form_proposal_path(proposal),
class: "button hollow alert expanded" %>
<% end %>
|
<% else %>
<%= link_to t("users.proposals.see"), proposal, class: "button hollow" %>
|
<% end %>