Browse Source

Fix pluralization of "votes" on own comments

merge-requests/7/head
Andrew Shu 7 years ago
parent
commit
053e63291e
  1. 8
      tildes/tildes/templates/macros/comments.jinja2

8
tildes/tildes/templates/macros/comments.jinja2

@ -74,7 +74,13 @@
{% if request.has_permission('view', comment) %}
{# Show votes at the top only if it's your own comment #}
{% if request.user == comment.user and comment.num_votes > 0 %}
<span class="comment-votes">{{ comment.num_votes }} votes</span>
<span class="comment-votes">{{ comment.num_votes }}
{% trans num_votes=comment.num_votes %}
vote
{% pluralize %}
votes
{% endtrans %}
</span>
{% endif %}
{% if comment.tag_counts %}

Loading…
Cancel
Save