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
marseys = dict(sorted(marseys.items(), key=lambda x: x[1]))
if SITE == 'rdrama.net':
topmakers = {}
for k, val in marseys.items():

View File

@ -272,7 +272,7 @@ def post_sidebar(v):
@auth_required
def shadowbanned(v):
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 = ''
else: template = 'CHRISTMAS/'
return render_template(f"{template}shadowbanned.html", v=v, users=users)

View File

@ -14,7 +14,7 @@
<thead class="bg-primary text-white">
<tr>
<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(3)" style="font-weight:bold; text-align:right;">Mod actions</th>
</tr>

View File

@ -1,15 +1,13 @@
{% extends "settings2.html" %}
{% block content %}
<script src="/static/assets/js/sort_table.js?a=3"></script>
<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">
<tr>
<th style="font-weight:bold;">#</th>
<th role="button" onclick="sort_table(1)" style="font-weight:bold;">Name</th>
<th role="button" onclick="sort_table(2)" style="font-weight:bold;">Grasser</th>
<th style="font-weight:bold;">Name</th>
<th style="font-weight:bold;">Grasser</th>
</tr>
</thead>
{% for user in users %}

View File

@ -4,7 +4,7 @@
</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">
<tr>
<th style="font-weight: bold">#</th>

View File

@ -1,15 +1,14 @@
{% extends "settings2.html" %}
{% block content %}
<script src="/static/assets/js/sort_table.js?a=3"></script>
<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">
<tr>
<th style="font-weight:bold;">#</th>
<th role="button" onclick="sort_table(1)" 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;">Name</th>
<th style="font-weight:bold;">Shadowbanned by</th>
</tr>
</thead>
{% for user in users %}