vc
This commit is contained in:
parent
4ba3814fd4
commit
073bfa8fcd
5 changed files with 8 additions and 8 deletions
|
@ -31,7 +31,7 @@ def marsey_list():
|
|||
@app.get("/logged_out/terms")
|
||||
@auth_desired
|
||||
def terms(v):
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}")
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
return render_template("terms.html", v=v)
|
||||
|
@ -40,7 +40,7 @@ def terms(v):
|
|||
@app.get('/logged_out/sidebar')
|
||||
@auth_desired
|
||||
def sidebar(v):
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}")
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
return render_template('sidebar.html', v=v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue