show comment count only if we have comments
This commit is contained in:
parent
56cea57618
commit
44ab433427
1 changed files with 2 additions and 0 deletions
|
@ -8,8 +8,10 @@
|
|||
<img src={{ item.data.thumbnail }}>
|
||||
</div>
|
||||
</a>
|
||||
{% if item.public_comments.count %}
|
||||
<div class="comments">
|
||||
<a href="{{ item.get_absolute_url }}">{{ item.public_comments.count }} comments</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue