Update templates/category.html
parent
4cac6be5bb
commit
831545696e
|
@ -29,8 +29,8 @@
|
||||||
<a href="{{ url_for('upvote_post', post_id=post.id) }}" class="btn btn-sm btn-success"><i class="fas fa-arrow-up"></i> Upvote ({{ post.upvotes }})</a>
|
<a href="{{ url_for('upvote_post', post_id=post.id) }}" class="btn btn-sm btn-success"><i class="fas fa-arrow-up"></i> Upvote ({{ post.upvotes }})</a>
|
||||||
<a href="{{ url_for('downvote_post', post_id=post.id) }}" class="btn btn-sm btn-danger"><i class="fas fa-arrow-down"></i> Downvote ({{ post.downvotes }})</a>
|
<a href="{{ url_for('downvote_post', post_id=post.id) }}" class="btn btn-sm btn-danger"><i class="fas fa-arrow-down"></i> Downvote ({{ post.downvotes }})</a>
|
||||||
</div>
|
</div>
|
||||||
{% if post.comments %}
|
{% if comments %}
|
||||||
<small class="text-muted">{{ post.comments.count() }} Comments</small>
|
<small class="text-muted">{{ comment_count }} Comments</small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<small class="text-muted">0 Comments</small>
|
<small class="text-muted">0 Comments</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue