add vote counters to comments

This commit is contained in:
David Gil
2015-08-11 19:31:52 +02:00
parent 19ef481917
commit 0291f574a2
6 changed files with 28 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
</span>
<p class="reply">
<%= t("debates.debate.responses", count: comment.children_count) %>
<%= t("debates.comment.responses", count: comment.children_count) %>
<% if user_signed_in? %>
&nbsp;|&nbsp;
<%= render 'comments/form', {parent: comment, toggeable: true} %>

View File

@@ -1,5 +1,6 @@
<span>
númerototal votos
<!-- <%= t('debates.comment.votes_weighted_score', score: comment.weighted_score) %> -->
<%= t('debates.comment.votes', count: comment.total_votes) %>
</span>
&nbsp;|&nbsp;
<span class="in_favor">
@@ -16,4 +17,4 @@
<i class="icon-angle-down"></i>
<% end %>
<%= comment.get_dislikes.size %>
</span>
</span>