diff --git a/templates/category.html b/templates/category.html index f5de4d8..9f65aeb 100644 --- a/templates/category.html +++ b/templates/category.html @@ -3,22 +3,41 @@ {% block title %}{{ category.category_name }} Category{% endblock %} {% block content %} -
+

{{ category.category_name }}

- Create Post -
+ Create Post

+
-
- {% for post in posts %} - -
{{ post.post_name }}
-

{{ post.text }}

- Created by {{ post.created_by }} - {{ post.creation_date }} -
- {% endfor %} + {% for post in posts %} +
+
+ Created by {{ post.created_by }} - {{ post.creation_date.strftime('%Y-%m-%d %H:%M') }} +
+
+

{{ post.post_name }}

+ {% for media in post.media %} +
+ Media +
+ {% endfor %} +

{{ post.text }}

+
+
+ + {% if post.comments %} + {{ post.comments.count() }} Comments + {% else %} + 0 Comments + {% endif %} +
+
+ {% endfor %}