forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-27 21:19:18 -06:00
parent 0cd842e0ae
commit 8fc74269a3
2 changed files with 6 additions and 14 deletions

View File

@ -63,14 +63,8 @@
<li>
<hr class="mt-2 mb-1.5 border-t border-black h-1 shadow-inset-t-white-05"/>
</li>
<li id="admin2" class="{% if u.admin_level > 1 %}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}}/make_admin','admin2','unadmin2')">
<i class="fas fa-user-shield fa-sm fa-fw mr-4"></i>
Make admin
</button>
</li>
<li id="unadmin2" class="{% if u.admin_level < 2 %}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}}/remove_admin','admin2','unadmin2')">
<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="postToast('/@{{u.username}}/remove_admin')">
<i class="fas fa-user-minus fa-sm fa-fw mr-4"></i>
Remove admin
</button>

View File

@ -45,14 +45,12 @@
Danger Zone
</h2>
<ul class="flex flex-col mt-3 mb-0 space-y-4">
{% if v.admin_level > 2 %}
<li class="flex space-x-2">
<input type="checkbox" value="club" class="w-5 h-5" onchange="realAdmin(this,'{{u.username}}')" {% if u.admin_level > 1 %}checked{% endif %}>
<div class="mt-[-1px]">
<label class="label mb-0" for="club">Admin</label>
<small class="block text-gray-600 dark:text-gray-400">
Make @{{ u.username }} an admin.
</small>
</div>
<button class="btn btn-red" onclick="postToast('/@{{u.username}}/remove_admin')">
<i class="fas fa-user-slash fa-sm fa-fw mr-2"></i>
Revoke Admin Permissions
</button>
</li>
</ul>
</div>