add "Remove Badge" button

pull/222/head
Aevann 2024-02-03 06:14:04 +02:00
parent 3e4f15981e
commit 5570e09606
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@
<div class="actionbtns my-3">
{% if FEATURES['BADGES'] and v.admin_level >= PERMS['USER_BADGES'] %}
<a id="give-badge-{{deviceType}}" class="btn btn-primary" style="display:inline-block!important" href="/admin/badge_grant?usernames={{u.username}}">Give Badge</a>
<a id="remove-badge-{{deviceType}}" class="btn btn-primary" style="display:inline-block!important" href="/admin/badge_remove?usernames={{u.username}}">Remove Badge</a>
{% endif %}
{% if v.admin_level >= PERMS['ADMIN_ADD'] and not u.admin_level %}