From 43281688340659ba88716f1a2189a779b2b3c21f Mon Sep 17 00:00:00 2001 From: maaa Date: Thu, 29 Jun 2023 20:39:27 +0200 Subject: [PATCH] real --- templates/main.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/templates/main.html b/templates/main.html index 699e70b..dedd0dc 100644 --- a/templates/main.html +++ b/templates/main.html @@ -26,16 +26,18 @@





{% for post in posts %} -
-

{{ getUser(post["creator"])["username"] }}

-

{{ post["created"] }}

- {% if userdata.administrator == 1 %} - Remove post -

- {% endif %} - -

{{ post["textstr"] }}

-
+
+

{{ getUser(post["creator"])["username"] }}

+

{{ post["created"] }}

+ {% if userdata %} + {% if userdata.administrator == 1 %} + Remove post +

+ {% endif %} + {% endif %} + +

{{ post["textstr"] }}

+
{% endfor %}