From 5369da453b955d0a9738210600c28cf6cad1a45d Mon Sep 17 00:00:00 2001 From: IniKiwi Date: Sat, 1 Jul 2023 12:24:53 +0200 Subject: [PATCH] post: unique delete button for guest posts --- app/templates/widgets/thread.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/templates/widgets/thread.html b/app/templates/widgets/thread.html index 827c2d2..c790396 100644 --- a/app/templates/widgets/thread.html +++ b/app/templates/widgets/thread.html @@ -33,8 +33,12 @@ {% endif %} {% if can_punish %} - Supprimer{{ suffix }} (normal) - Supprimer{{ suffix }} (pénalité) + {% if post.author.type == "member" %} + Supprimer{{ suffix }} (normal) + Supprimer{{ suffix }} (pénalité) + {% else %} + Supprimer{{ suffix }} + {% endif %} {% elif can_delete %} Supprimer{{ suffix }} {% endif %}