From 44e28c2e44ba6a434d6300230565190f143bae0a Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Sun, 13 Aug 2023 21:48:38 -0700 Subject: [PATCH] Update post view to show OPs with red bars on the left Signed-off-by: Alek Ratzloff --- chanbans/templates/index.html | 59 ++++++++++++++++++----------------- static/style00.css | 22 +++++++++++++ 2 files changed, 53 insertions(+), 28 deletions(-) diff --git a/chanbans/templates/index.html b/chanbans/templates/index.html index 051125b..ff33dae 100644 --- a/chanbans/templates/index.html +++ b/chanbans/templates/index.html @@ -41,36 +41,39 @@ {% for post in posts %} -
- - {% if post['thumb_path'] %} -
-
- - File: {{post['tim']}}{{post['ext']}} - ({{post['fsize']}}, {{post['w']}}x{{post['h']}}, {{post['filename']}}{{post['ext']}}) +
+
+
+ + {% if post['thumb_path'] %} +
+
+ + File: {{post['tim']}}{{post['ext']}} + ({{post['fsize']}}, {{post['w']}}x{{post['h']}}, {{post['filename']}}{{post['ext']}}) + +
+ +
- - - -
- {% endif %} -
- {{post['com']|safe}} -
+ {% endif %} +
+ {{post['com']|safe}} +
+
{{post['action']}} diff --git a/static/style00.css b/static/style00.css index dcc4ca9..1c41620 100644 --- a/static/style00.css +++ b/static/style00.css @@ -42,6 +42,28 @@ header { font-size: large; } +.post-container { + height: 100%; + width: 100%; + display: table; +} + +.post-left { + display: table-cell; + width: 5px; +} + +.post-left-op { + display: table-cell; + width: 5px; + background-color: #f00; +} + +.post-right { + display: table-cell; + padding-left: 10px; +} + table { border-top: 1px solid black; border-left: 1px solid black;