Add method to follows helper to get followable partial name and arguments automatically.
This commit is contained in:
@@ -7,14 +7,18 @@
|
||||
|
||||
<% if proposal.retired? %>
|
||||
|
||||
<td class="text-center">
|
||||
<span class="label alert"><%= t('users.proposals.retired') %></span>
|
||||
</td>
|
||||
|
||||
<% elsif author?(proposal) %>
|
||||
|
||||
<td class="text-center">
|
||||
<%= link_to t("users.proposals.send_notification"),
|
||||
new_proposal_notification_path(proposal_id: proposal.id),
|
||||
class: 'button hollow' %>
|
||||
</td>
|
||||
|
||||
<% elsif author?(proposal) %>
|
||||
|
||||
<td class="text-center">
|
||||
<% if proposal.retired? %>
|
||||
<span class="label alert"><%= t('users.proposals.retired') %></span>
|
||||
|
||||
Reference in New Issue
Block a user