adds cache to votes on Comments

This commit is contained in:
Juanjo Bazán
2015-08-25 15:58:49 +02:00
parent 96dc85d1a5
commit cfe583fbe6
5 changed files with 14 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
<span>
<!-- <%= t('debates.comment.votes_weighted_score', score: comment.weighted_score) %> -->
<%= t('debates.comment.votes', count: comment.total_votes) %>
</span>
&nbsp;|&nbsp;
@@ -8,7 +7,7 @@
method: "post", remote: true do %>
<i class="icon-angle-up"></i>
<% end %>
<%= comment.get_likes.size %>
<%= comment.total_likes %>
</span>
<span class="against">
@@ -16,5 +15,5 @@
method: "post", remote: true do %>
<i class="icon-angle-down"></i>
<% end %>
<%= comment.get_dislikes.size %>
<%= comment.total_dislikes %>
</span>