From 536b4634eb275332d2932983e451b85809554438 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Fri, 24 Apr 2020 20:46:53 +0530 Subject: Improve post comments UI --- yaksh/static/yaksh/css/custom.css | 4 +++ yaksh/templates/yaksh/post_comments.html | 55 +++++++++++++++++--------------- 2 files changed, 33 insertions(+), 26 deletions(-) diff --git a/yaksh/static/yaksh/css/custom.css b/yaksh/static/yaksh/css/custom.css index 6687c4b..3979e3e 100644 --- a/yaksh/static/yaksh/css/custom.css +++ b/yaksh/static/yaksh/css/custom.css @@ -113,4 +113,8 @@ body, .dropdown-menu { .post_image, .comment_image { width: 50%; height: 50%; +} + +.description { + font-size: 16px; } \ No newline at end of file diff --git a/yaksh/templates/yaksh/post_comments.html b/yaksh/templates/yaksh/post_comments.html index 97d6eec..57dbe26 100644 --- a/yaksh/templates/yaksh/post_comments.html +++ b/yaksh/templates/yaksh/post_comments.html @@ -10,11 +10,11 @@ Back to Posts

-
-
-

{{post.title}}

+
+
+ {{post.title}}
- + {{post.creator.username}} {{post.created_at|naturaltime}} {% if user.profile.is_moderator %}Delete{% endif %} @@ -22,36 +22,39 @@
-
{{post.description}}
+

{{post.description}}

{% if post.image %} - +
{% endif %}

-
- {% if comments %} -
Comments:
- {% for comment in comments %} -
- {% if comment.image %} - - - - {% endif %} -
{{comment.description}}
- - by: {{comment.creator.username}} . {{comment.created_at|naturaltime}} - {% if user.profile.is_moderator %}Delete{% endif %} - + {% if comments %} + {% for comment in comments %} +
+
+
+
+ {{comment.creator.username}} +
+
+ {{comment.created_at}} {% if user.profile.is_moderator %} Delete{% endif %} +
+
+

{{comment.description}}

+
+ {% if comment.image %} + +
+
+ {% endif %} +
- {% endfor %} - {% else %} - No comments on this post. - {% endif %} -
+
+ {% endfor %} + {% endif %}
-- cgit