From 221e0848626173fe3f95fac24493b3bc048eadd1 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Tue, 22 Jan 2019 07:59:46 +0100
Subject: [PATCH] Tweak Remark display for su

---
 scipost/templates/scipost/_remark_li.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scipost/templates/scipost/_remark_li.html b/scipost/templates/scipost/_remark_li.html
index bf4fc637b..d8d0494ba 100644
--- a/scipost/templates/scipost/_remark_li.html
+++ b/scipost/templates/scipost/_remark_li.html
@@ -2,5 +2,9 @@
     <div class="font-weight-bold">
         {{remark.contributor.user.first_name}} {{remark.contributor.user.last_name}} <small class="text-muted">on {{remark.date}}</small>
     </div>
+    {% if remark.contributor.user.is_superuser %}
+    <div>{{remark.remark|safe|linebreaks}}</div>
+    {% else %}
     <div>{{remark.remark|linebreaks}}</div>
+    {% endif %}
 </li>
-- 
GitLab