fix
This commit is contained in:
parent
a9236c843e
commit
07fcb83bb5
1 changed files with 29 additions and 25 deletions
|
@ -251,34 +251,38 @@
|
|||
{% block content %}
|
||||
<div class="col-span-full xl:col-span-9">
|
||||
|
||||
{% if u.is_suspended %}
|
||||
<!-- Non-dismissable Alerts -->
|
||||
<div class="p-2.5 md:p-0">
|
||||
<!-- Banned -->
|
||||
<div class="mt-4 mb-0 rounded-lg shadow-lg flex items-center p-3 text-white bg-red-600 border border-red-900 shadow-inset-t-white-10">
|
||||
<i class="fas fa-gavel fa-fw mr-1"></i>
|
||||
<div class="font-medium">
|
||||
{{ u.username }} was banned by
|
||||
<a href="{{u.banned_by.url}}" class="text-white hover:underline">@{{u.banned_by.username}}</a>
|
||||
{% if u.is_suspended or u.shadowbanned %}
|
||||
<div class="flex flex-col space-y-2">
|
||||
{% if u.is_suspended %}
|
||||
<!-- Non-dismissable Alerts -->
|
||||
<div class="p-2.5 md:p-0">
|
||||
<!-- Banned -->
|
||||
<div class="mt-4 mb-0 rounded-lg shadow-lg flex items-center p-3 text-white bg-red-600 border border-red-900 shadow-inset-t-white-10">
|
||||
<i class="fas fa-gavel fa-fw mr-1"></i>
|
||||
<div class="font-medium">
|
||||
{{ u.username }} was banned by
|
||||
<a href="{{u.banned_by.url}}" class="text-white hover:underline">@{{u.banned_by.username}}</a>
|
||||
</div>
|
||||
{% if u.unban_utc %}
|
||||
<div class="ml-auto text-red-100 font-bold">{{u.unban_string}}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if v and v.admin_level > 1 and u.shadowbanned %}
|
||||
<!-- Non-dismissable Alerts -->
|
||||
<div class="p-2.5 md:p-0">
|
||||
<!-- Banned -->
|
||||
<div class="mt-4 mb-0 rounded-lg shadow-lg p-3 text-white bg-red-600 border border-red-900 shadow-inset-t-white-10">
|
||||
<i class="fas fa-ghost fa-fw mr-1"></i>
|
||||
<span class="font-medium">
|
||||
{{ u.username }} is shadowbanned
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{% if u.unban_utc %}
|
||||
<div class="ml-auto text-red-100 font-bold">{{u.unban_string}}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if v and v.admin_level > 1 and u.shadowbanned %}
|
||||
<!-- Non-dismissable Alerts -->
|
||||
<div class="p-2.5 md:p-0">
|
||||
<!-- Banned -->
|
||||
<div class="mt-4 mb-0 rounded-lg shadow-lg p-3 text-white bg-red-600 border border-red-900 shadow-inset-t-white-10">
|
||||
<i class="fas fa-ghost fa-fw mr-1"></i>
|
||||
<span class="font-medium">
|
||||
{{ u.username }} is shadowbanned
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="sm:py-4 my-2.5 sm:my-0">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue