<%= link_to proposal.title, proposal, proposal.retired? ? { class: 'retired' } : {} %>
<%= proposal.summary %>
|
<% if can? :retire_form, proposal %>
<%= link_to t("users.proposals.send_notification"),
new_proposal_notification_path(proposal_id: proposal.id),
class: 'button hollow' %>
|
<% end %>
<% if can? :new, ProposalNotification, author_id: proposal.author_id %>
<% if proposal.retired? %>
<%= t('users.proposals.retired') %>
<% else %>
<%= link_to t('users.proposals.retire'),
retire_form_proposal_path(proposal),
class: 'button hollow alert' %>
<% end %>
|
<% end %>