Add method to follows helper to get followable partial name and arguments automatically.

This commit is contained in:
Senén Rodero Rodríguez
2017-07-18 19:30:14 +02:00
parent 16987e7eb8
commit 57c8887077
3 changed files with 12 additions and 7 deletions

View File

@@ -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>