Do not show flaggable and followable buttons on budgets_investment and proposals pages when user is not logged.

This commit is contained in:
taitus
2017-07-04 16:28:54 +02:00
committed by Senén Rodero Rodríguez
parent 0ffa213a65
commit 97ee107157
7 changed files with 76 additions and 59 deletions

View File

@@ -13,10 +13,12 @@
<%= l investment.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= investment.heading.name %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="js-follow">
<% if current_user %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render 'follows/followable_button', followable: investment %>
</span>
<% end %>
</div>
<br>