forked from rDrama/rDrama
103 lines
6.9 KiB
HTML
103 lines
6.9 KiB
HTML
<div class="dropdown">
|
|
<button class="btn btn-gray" type="button" id="dropdownProfile-Actions" data-bs-toggle="dropdown" aria-expanded="false" data-bs-auto-close="outside">
|
|
<i class="fas fa-shield fa-fw fa-sm"></i>
|
|
</button>
|
|
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownProfile-Actions">
|
|
{% if v.admin_level > 1 %}
|
|
<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>
|
|
<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>
|
|
Grant club access
|
|
</button>
|
|
</li>
|
|
<li id="bar" class="{% if u.club_banned %}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_ban','grant','bar')">
|
|
<i class="fas fa-door-closed fa-sm fa-fw mr-4"></i>
|
|
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 class="hidden">
|
|
<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('/admin/unnuke_user')">
|
|
<i class="fas fa-file-check fa-sm fa-fw mr-4"></i>
|
|
Approve user's content
|
|
</button>
|
|
</li>
|
|
<li class="hidden">
|
|
<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('/admin/nuke_user')">
|
|
<i class="fas fa-file-times fa-sm fa-fw mr-4"></i>
|
|
Remove user's content
|
|
</button>
|
|
</li>
|
|
<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')">
|
|
<i class="fas fa-history fa-sm fa-fw mr-4"></i>
|
|
Revert admin actions
|
|
</button>
|
|
</li>
|
|
{% endif %}
|
|
{% if v.admin_level > 2 %}
|
|
<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')">
|
|
<i class="fas fa-user-minus fa-sm fa-fw mr-4"></i>
|
|
Remove admin
|
|
</button>
|
|
</li>
|
|
<li id="memeadmin2" 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_meme_admin','memeadmin2','unmemeadmin2')">
|
|
<i class="fas fa-grin-squint-tears fa-sm fa-fw mr-4"></i>
|
|
Make meme admin
|
|
</button>
|
|
</li>
|
|
<li id="unmemeadmin2" 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}}/remove_meme_admin','memeadmin2','unmemeadmin2')">
|
|
<i class="fas fa-sad-cry fa-sm fa-fw mr-4"></i>
|
|
Remove meme admin
|
|
</button>
|
|
</li>
|
|
{% endif %}
|
|
{% if v.admin_level > 1 %}
|
|
<li>
|
|
<hr class="mt-2 mb-1.5 border-t border-black h-1 shadow-inset-t-white-05"/>
|
|
</li>
|
|
<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" data-bs-toggle="modal" data-bs-target="#adminManageUserModal">
|
|
<i class="fas fa-ellipsis-h fa-sm fa-fw mr-4"></i>
|
|
More options
|
|
</button>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div> |