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>
|
||||
{% endif %}
|
||||
</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">
|
||||
<a
|
||||
{% if not request.user %}
|
||||
@ -92,7 +100,6 @@
|
||||
</a>
|
||||
</div>
|
||||
</h3>
|
||||
{# 0 comments. Be the first to add one! #}
|
||||
{% if request.user %}
|
||||
<form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment',
|
||||
user= media.get_uploader.username,
|
||||
@ -107,7 +114,6 @@
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if comments %}
|
||||
{% for comment in comments %}
|
||||
{% set comment_author = comment.get_author %}
|
||||
{% if pagination.active_id == comment._id %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user