Update templates/category.html

main
Elīna Lukjanoviča 2024-04-29 09:26:00 +00:00
parent 4cac6be5bb
commit 831545696e
1 changed files with 2 additions and 2 deletions

View File

@ -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 %}