forked from MarseyWorld/MarseyWorld
fds
parent
2f080dac5d
commit
bc3a89c74d
|
@ -224,7 +224,7 @@ def get_sidebar(v):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(f'files/templates/sidebar_{SITE_NAME}.html', 'r') as f: sidebar = f.read()
|
with open(f'files/templates/sidebar_{SITE_NAME}.html', 'r') as f: sidebar = f.read()
|
||||||
except Exception:
|
except:
|
||||||
sidebar = None
|
sidebar = None
|
||||||
|
|
||||||
return render_template('admin/sidebar.html', v=v, sidebar=sidebar)
|
return render_template('admin/sidebar.html', v=v, sidebar=sidebar)
|
||||||
|
@ -250,7 +250,7 @@ def post_sidebar(v):
|
||||||
|
|
||||||
g.db.commit()
|
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")
|
@app.get("/admin/shadowbanned")
|
||||||
|
|
|
@ -4,6 +4,18 @@
|
||||||
|
|
||||||
{% block content %}
|
{% 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="row my-5">
|
||||||
<div class="col col-md-8">
|
<div class="col col-md-8">
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
|
|
Loading…
Reference in New Issue