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

@@ -49,14 +49,15 @@
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="js-flag-actions">
<% if current_user %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render 'proposals/flag_actions', proposal: @proposal %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="js-follow">
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render 'follows/followable_button', followable: @proposal %>
</span>
<% end %>
</div>
<br>