From 5672c73ac420d152858aa57a8e1a2cf132bc0086 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 4 Jul 2022 17:32:55 -0700 Subject: [PATCH] Show deleted users as red in the user list It can be hard to differentiate at a glance if a user is deleted or suspended -- without this, you would have to read the deactivation reason. By making deletions (moderator and self deletions) red, it's clear at a glance if an account has been permanently deleted or just temporarily suspended. --- bookwyrm/templates/settings/users/user_admin.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bookwyrm/templates/settings/users/user_admin.html b/bookwyrm/templates/settings/users/user_admin.html index 4144f0bde..059e064db 100644 --- a/bookwyrm/templates/settings/users/user_admin.html +++ b/bookwyrm/templates/settings/users/user_admin.html @@ -72,6 +72,12 @@ {% trans "Active" %} + {% elif user.deactivation_reason == "moderator_deletion" or user.deactivation_reason == "self_deletion" %} + + {% trans "Deleted" %} + ({{ user.get_deactivation_reason_display }}) {% else %}