Move followable button to sidebar after social share buttons

This commit is contained in:
Senén Rodero Rodríguez
2017-07-11 10:30:07 +02:00
parent 58b1ee57cf
commit 503e079909
2 changed files with 6 additions and 9 deletions

View File

@@ -13,12 +13,6 @@
<%= l investment.created_at.to_date %> <%= l investment.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span> <span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= investment.heading.name %> <%= investment.heading.name %>
<% if current_user %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render 'follows/followable_button', followable: investment %>
<% end %>
</div> </div>
<br> <br>
@@ -118,6 +112,9 @@
title: investment.title, title: investment.title,
url: budget_investment_url(budget_id: investment.budget_id, id: investment.id) url: budget_investment_url(budget_id: investment.budget_id, id: investment.id)
} %> } %>
<%= render 'follows/followable_button', followable: investment if current_user %>
</aside> </aside>
</div> </div>
</section> </section>

View File

@@ -53,9 +53,6 @@
<% if current_user %> <% if current_user %>
<span class="bullet">&nbsp;&bull;&nbsp;</span> <span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render 'proposals/flag_actions', proposal: @proposal %> <%= render 'proposals/flag_actions', proposal: @proposal %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render 'follows/followable_button', followable: @proposal %>
<% end %> <% end %>
</div> </div>
@@ -142,6 +139,9 @@
title: @proposal.title, title: @proposal.title,
url: proposal_url(@proposal) url: proposal_url(@proposal)
} %> } %>
<%= render 'follows/followable_button', followable: @proposal if current_user %>
</aside> </aside>
</div> </div>
</div> </div>