From 55552e14b7b93c4b2b2a25699e7dd1e243d1b7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C4=ABna=20Lukjanovi=C4=8Da?= Date: Mon, 29 Apr 2024 09:26:15 +0000 Subject: [PATCH] Update templates/post.html --- templates/post.html | 64 +++++++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/templates/post.html b/templates/post.html index 124f79d..8fb8fff 100644 --- a/templates/post.html +++ b/templates/post.html @@ -14,39 +14,51 @@ {% endfor %} -
-
- Upvote ({{ post.upvotes }}) - Downvote ({{ post.downvotes }}) +
+
+ Upvote ({{ post.upvotes }}) + Downvote ({{ post.downvotes }}) +
+
+

{{ comment_count }} Comments

+
-
- {% if post.comments %} -

{{ post.comments.count() }} Comments

- {% else %} -

0 Comments

- {% endif %} -
+ {% if comments %} -
    - {% for comment in comments %} -
  • - {{ comment.created_by }}: {{ comment.text }} -
  • - {% endfor %} -
+
+ +
{% else %} -

No comments yet. Be the first to comment!

+

No comments yet. Be the first to comment!

{% endif %} {% if g.user %} -
-
- -
- -
+
+

Add a Comment

+
+ +
+ +
+ +
+
{% else %} -

Log in to leave a comment.

+

Log in to leave a comment.

{% endif %}
{% endblock %}