show comment count only if we have comments

This commit is contained in:
j 2023-08-16 17:32:59 +02:00
parent 56cea57618
commit 44ab433427

View file

@ -8,8 +8,10 @@
<img src={{ item.data.thumbnail }}> <img src={{ item.data.thumbnail }}>
</div> </div>
</a> </a>
{% if item.public_comments.count %}
<div class="comments"> <div class="comments">
<a href="{{ item.get_absolute_url }}">{{ item.public_comments.count }} comments</a> <a href="{{ item.get_absolute_url }}">{{ item.public_comments.count }} comments</a>
</div> </div>
{% endif %}
</div> </div>