remotes/1693045480750635534/spooky-22
Aevann1 2021-12-31 14:22:55 +02:00
parent 2f080dac5d
commit bc3a89c74d
2 changed files with 14 additions and 2 deletions

View File

@ -224,7 +224,7 @@ def get_sidebar(v):
try:
with open(f'files/templates/sidebar_{SITE_NAME}.html', 'r') as f: sidebar = f.read()
except Exception:
except:
sidebar = None
return render_template('admin/sidebar.html', v=v, sidebar=sidebar)
@ -250,7 +250,7 @@ def post_sidebar(v):
g.db.commit()
return render_template('admin/sidebar.html', v=v, sidebar=sidebar)
return render_template('admin/sidebar.html', v=v, sidebar=sidebar, msg='Sidebar edited successfully!')
@app.get("/admin/shadowbanned")

View File

@ -4,6 +4,18 @@
{% block content %}
{% if msg %}
<div class="alert alert-success alert-dismissible fade show my-3" role="alert">
<i class="fas fa-check-circle my-auto" aria-hidden="true"></i>
<span>
{{msg}}
</span>
<button role="button" class="close" data-bs-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="far fa-times"></i></span>
</button>
</div>
{% endif %}
<div class="row my-5">
<div class="col col-md-8">
<div class="settings">