mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-17 06:48:36 +02:00
Fix pluralization of "votes" on own comments
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user