forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-09 23:55:26 -06:00
parent 475443303a
commit 9f5aee7164
1 changed files with 29 additions and 0 deletions

View File

@ -4,6 +4,11 @@
</button>
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownProfile-Actions">
{% if v.admin_level > 1 %}
<li>
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast('/@{{u.username}}/revert_actions')">
Revert admin actions
</button>
</li>
<li id="grant" class="{% if u.paid_dues %}hidden{% endif %}">
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/@{{u.username}}/club_allow','grant','bar')">
<i class="fas fa-door-open fa-sm fa-fw mr-4"></i>
@ -16,6 +21,30 @@
Bar from club
</button>
</li>
<li id="shadowban2" class="{% if u.shadowbanned %}hidden{% endif %}">
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/shadowban/{{u.id}}','shadowban2','unshadowban2')">
<i class="fas fa-eye-slash fa-sm fa-fw mr-4"></i>
Shadowban
</button>
</li>
<li id="unshadowban2" class="{% if not u.shadowbanned %}hidden{% endif %}">
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/unshadowban/{{u.id}}','shadowban2','unshadowban2')">
<i class="fas fa-eye fa-sm fa-fw mr-4"></i>
Unshadowban
</button>
</li>
<li id="verify2" class="{% if u.verified %}hidden{% endif %}">
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/admin/verify/{{u.id}}','verify2','unverify2')">
<i class="fas fa-badge-check fa-sm fa-fw mr-4"></i>
Verify
</button>
</li>
<li id="unverify2" class="{% if not u.verified %}hidden{% endif %}">
<button class="dropdown-item block w-full text-left px-4 py-2 text-sm text-gray-200 bg-gradient-to-t hover:from-red-800 hover:to-red-700 hover:shadow-inner focus:shadow-inner focus:bg-gradient-to-t focus:from-red-800 focus:to-red-700" onclick="post_toast2('/admin/unverify/{{u.id}}','verify2','unverify2')">
<i class="fas fa-eraser fa-sm fa-fw mr-4"></i>
Unverify
</button>
</li>
{% endif %}
{% if v.admin_level > 2 %}
<li>