comment/comments

This commit is contained in:
j 2023-08-21 11:11:52 +02:00
parent c063e7cebc
commit 36ab41eba1

View file

@ -10,7 +10,9 @@
</a> </a>
{% if item.public_comments.count %} {% if item.public_comments.count %}
<div class="comments"> <div class="comments">
<a href="{{ item.get_absolute_url }}">{{ item.public_comments.count }} comments</a> {% with comments=item.public_comments.count %}
<a href="{{ item.get_absolute_url }}">{{ comments }} comment{{ comments |pluralize }}</a>
{% endwith %}
</div> </div>
{% endif %} {% endif %}
</div> </div>