forked from rDrama/rDrama
fix
parent
4bca41a1b5
commit
b0611ccab3
|
@ -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…
Reference in New Issue