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 }}>
|
<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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue