remotes/1693045480750635534/spooky-22
parent
c724f5e87c
commit
670fe13697
|
@ -60,7 +60,7 @@ def toggle_club_ban(v, username):
|
||||||
u.club_banned = not u.club_banned
|
u.club_banned = not u.club_banned
|
||||||
|
|
||||||
for x in u.alts:
|
for x in u.alts:
|
||||||
x.club_banned = not x.club_banned
|
x.club_banned = u.club_banned
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"message": f"@{username} has been kicked from the country club. Deserved." if u.club_banned else f"@{username}'s ban from club removed"
|
"message": f"@{username} has been kicked from the country club. Deserved." if u.club_banned else f"@{username}'s ban from club removed"
|
||||||
|
|
|
@ -328,12 +328,8 @@
|
||||||
<input type="submit" class="btn btn-danger" value="Remove User's Content">
|
<input type="submit" class="btn btn-danger" value="Remove User's Content">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if u.club_banned %}
|
<button id="banclub" class="{% if u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub','unbanclub')">Ban from club</button>
|
||||||
<button class="btn btn-success" onclick="post_toast('/@{{u.username}}/club_ban')">Grant club access</button>
|
<button id="unbanclub" class="{% if not u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub','unbanclub')">Unban from club</button>
|
||||||
{% else %}
|
|
||||||
<button class="btn btn-danger" onclick="post_toast('/@{{u.username}}/club_ban')">Bar from club</button>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<p>User ID: {{u.id}}</p>
|
<p>User ID: {{u.id}}</p>
|
||||||
{% if v and v.admin_level >=4 %}
|
{% if v and v.admin_level >=4 %}
|
||||||
|
@ -513,11 +509,8 @@
|
||||||
|
|
||||||
{% if v.admin_level > 1 %}
|
{% if v.admin_level > 1 %}
|
||||||
|
|
||||||
{% if u.club_banned %}
|
<button id="banclub2" class="{% if u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub2','unbanclub2')">Ban from club</button>
|
||||||
<button class="btn btn-success" onclick="post_toast('/@{{u.username}}/club_ban')">Grant club access</button>
|
<button id="unbanclub2" class="{% if not u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub2','unbanclub2')">Unban from club</button>
|
||||||
{% else %}
|
|
||||||
<button class="btn btn-danger" onclick="post_toast('/@{{u.username}}/club_ban')">Bar from club</button>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="body d-lg-flex border-bottom">
|
<div class="body d-lg-flex border-bottom">
|
||||||
|
|
Loading…
Reference in New Issue