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.
This commit is contained in:
parent
fe33fdcf56
commit
5672c73ac4
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,12 @@
|
||||||
<span class="icon icon-check"></span>
|
<span class="icon icon-check"></span>
|
||||||
</span>
|
</span>
|
||||||
{% trans "Active" %}
|
{% trans "Active" %}
|
||||||
|
{% elif user.deactivation_reason == "moderator_deletion" or user.deactivation_reason == "self_deletion" %}
|
||||||
|
<span class="tag is-danger" aria-hidden="true">
|
||||||
|
<span class="icon icon-x"></span>
|
||||||
|
</span>
|
||||||
|
{% trans "Deleted" %}
|
||||||
|
<span class="help">({{ user.get_deactivation_reason_display }})</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="tag is-warning" aria-hidden="true">
|
<span class="tag is-warning" aria-hidden="true">
|
||||||
<span class="icon icon-x"></span>
|
<span class="icon icon-x"></span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue