From 546feec88d5992794a17986f6173169b9b376174 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 29 Jan 2022 06:47:42 +0200 Subject: [PATCH] fds --- files/templates/submission.html | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index 284b05575..2e435b580 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -324,10 +324,17 @@ - {% elif not p.ghost %} - - - + {% else %} + {% if p.body %} + + + {% endif %} + + {% if not p.ghost %} + + + + {% endif %} {% endif %} @@ -591,6 +598,10 @@ Edit {% endif %} + {% if not (v and v.id == p.author_id) and p.body %} + View source + {% endif %} + {% if v and v.id==p.author_id %} {% if p.private %} Publish @@ -775,6 +786,10 @@ +{% if p.body and not (v and v.id == p.author_id) %} +
{{p.body.strip()}}
+{% endif %} +