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 %}
|
{% block content %}
|
||||||
<div class="col-span-full xl:col-span-9">
|
<div class="col-span-full xl:col-span-9">
|
||||||
|
|
||||||
{% if u.is_suspended %}
|
{% if u.is_suspended or u.shadowbanned %}
|
||||||
<!-- Non-dismissable Alerts -->
|
<div class="flex flex-col space-y-2">
|
||||||
<div class="p-2.5 md:p-0">
|
{% if u.is_suspended %}
|
||||||
<!-- Banned -->
|
<!-- Non-dismissable Alerts -->
|
||||||
<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">
|
<div class="p-2.5 md:p-0">
|
||||||
<i class="fas fa-gavel fa-fw mr-1"></i>
|
<!-- Banned -->
|
||||||
<div class="font-medium">
|
<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">
|
||||||
{{ u.username }} was banned by
|
<i class="fas fa-gavel fa-fw mr-1"></i>
|
||||||
<a href="{{u.banned_by.url}}" class="text-white hover:underline">@{{u.banned_by.username}}</a>
|
<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>
|
</div>
|
||||||
{% if u.unban_utc %}
|
|
||||||
<div class="ml-auto text-red-100 font-bold">{{u.unban_string}}</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</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 %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="sm:py-4 my-2.5 sm:my-0">
|
<div class="sm:py-4 my-2.5 sm:my-0">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue