Fix #712: Comment counter always uses plural
This commit is contained in:
parent
6f55906078
commit
694e965f45
@ -81,7 +81,15 @@
|
|||||||
<a class="button_action" href="{{ delete_url }}">{% trans %}Delete{% endtrans %}</a>
|
<a class="button_action" href="{{ delete_url }}">{% trans %}Delete{% endtrans %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
<h3>{% trans comment_count=comments.count() -%}{{ comment_count }} comments{%- endtrans %}
|
{% if comments %}
|
||||||
|
<h3>
|
||||||
|
{% if comments.count()==1 %}
|
||||||
|
{% trans comment_count=comments.count() -%}{{ comment_count }} comment{%- endtrans %}
|
||||||
|
{% elif comments.count()>1 %}
|
||||||
|
{% trans comment_count=comments.count() -%}{{ comment_count }} comments{%- endtrans %}
|
||||||
|
{% else %}
|
||||||
|
{% trans %}No comments yet.{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
<div class="right_align">
|
<div class="right_align">
|
||||||
<a
|
<a
|
||||||
{% if not request.user %}
|
{% if not request.user %}
|
||||||
@ -92,7 +100,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
{# 0 comments. Be the first to add one! #}
|
|
||||||
{% if request.user %}
|
{% if request.user %}
|
||||||
<form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment',
|
<form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment',
|
||||||
user= media.get_uploader.username,
|
user= media.get_uploader.username,
|
||||||
@ -107,7 +114,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if comments %}
|
|
||||||
{% for comment in comments %}
|
{% for comment in comments %}
|
||||||
{% set comment_author = comment.get_author %}
|
{% set comment_author = comment.get_author %}
|
||||||
{% if pagination.active_id == comment._id %}
|
{% if pagination.active_id == comment._id %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user