master
Aevann1 2022-01-03 12:55:35 +02:00
parent 19e11e0a89
commit a6f398137a
6 changed files with 11 additions and 12 deletions

View File

@ -19,6 +19,8 @@ for k, val in result.items():
del result del result
marseys = dict(sorted(marseys.items(), key=lambda x: x[1]))
if SITE == 'rdrama.net': if SITE == 'rdrama.net':
topmakers = {} topmakers = {}
for k, val in marseys.items(): for k, val in marseys.items():

View File

@ -272,7 +272,7 @@ def post_sidebar(v):
@auth_required @auth_required
def shadowbanned(v): def shadowbanned(v):
if not (v and v.admin_level > 1): abort(404) if not (v and v.admin_level > 1): abort(404)
users = [x for x in g.db.query(User).filter(User.shadowbanned != None).all()] users = [x for x in g.db.query(User).filter(User.shadowbanned != None).order_by(User.shadowbanned).all()]
if not v or v.oldsite: template = '' if not v or v.oldsite: template = ''
else: template = 'CHRISTMAS/' else: template = 'CHRISTMAS/'
return render_template(f"{template}shadowbanned.html", v=v, users=users) return render_template(f"{template}shadowbanned.html", v=v, users=users)

View File

@ -14,7 +14,7 @@
<thead class="bg-primary text-white"> <thead class="bg-primary text-white">
<tr> <tr>
<th style="font-weight:bold;">#</th> <th style="font-weight:bold;">#</th>
<th role="button" onclick="sort_table(1)" style="font-weight:bold;">Name</th> <th style="font-weight:bold;">Name</th>
<th role="button" onclick="sort_table2(2)" style="font-weight:bold; text-align:right;">Truescore</th> <th role="button" onclick="sort_table2(2)" style="font-weight:bold; text-align:right;">Truescore</th>
<th role="button" onclick="sort_table2(3)" style="font-weight:bold; text-align:right;">Mod actions</th> <th role="button" onclick="sort_table2(3)" style="font-weight:bold; text-align:right;">Mod actions</th>
</tr> </tr>

View File

@ -1,15 +1,13 @@
{% extends "settings2.html" %} {% extends "settings2.html" %}
{% block content %} {% block content %}
<script src="/static/assets/js/sort_table.js?a=3"></script>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table id="sortable_table" class="table table-striped mb-5 text-small-mobile"> <table class="table table-striped mb-5 text-small-mobile">
<thead class="bg-primary text-white"> <thead class="bg-primary text-white">
<tr> <tr>
<th style="font-weight:bold;">#</th> <th style="font-weight:bold;">#</th>
<th role="button" onclick="sort_table(1)" style="font-weight:bold;">Name</th> <th style="font-weight:bold;">Name</th>
<th role="button" onclick="sort_table(2)" style="font-weight:bold;">Grasser</th> <th style="font-weight:bold;">Grasser</th>
</tr> </tr>
</thead> </thead>
{% for user in users %} {% for user in users %}

View File

@ -4,7 +4,7 @@
</pre> </pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5"> <div class="overflow-x-auto"><table class="table table-striped mb-5 text-small">
<thead class="bg-primary text-white"> <thead class="bg-primary text-white">
<tr> <tr>
<th style="font-weight: bold">#</th> <th style="font-weight: bold">#</th>

View File

@ -1,15 +1,14 @@
{% extends "settings2.html" %} {% extends "settings2.html" %}
{% block content %} {% block content %}
<script src="/static/assets/js/sort_table.js?a=3"></script>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table id="sortable_table" class="table table-striped mb-5 text-small-mobile"> <table class="table table-striped mb-5 text-small-mobile">
<thead class="bg-primary text-white"> <thead class="bg-primary text-white">
<tr> <tr>
<th style="font-weight:bold;">#</th> <th style="font-weight:bold;">#</th>
<th role="button" onclick="sort_table(1)" style="font-weight:bold;">Name</th> <th style="font-weight:bold;">Name</th>
<th role="button" onclick="sort_table(2)" style="font-weight:bold;">Shadowbanned by</th> <th style="font-weight:bold;">Shadowbanned by</th>
</tr> </tr>
</thead> </thead>
{% for user in users %} {% for user in users %}