diff --git a/files/routes/front.py b/files/routes/front.py index c4129d780..b8192b058 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -122,21 +122,13 @@ def notifications(v): @app.get("/") @app.get("/logged_out") -@app.get("/logged_out/mobile") @auth_desired def front_all(v): session.permanent = True if not session.get("session_id"): session["session_id"] = secrets.token_hex(49) - if not v and not request.headers.get("Authorization"): - if request.path.startswith('/logged_out/mobile'): - if g.system == "desktop": return redirect(request.full_path.replace('/mobile','')) - elif request.path.startswith('/logged_out'): - if g.system == "mobile": return redirect(request.full_path.replace('/logged_out','/logged_out/mobile')) - else: - if g.system == "desktop": return redirect(f"/logged_out{request.full_path}") - else: return redirect(f"/logged_out/mobile{request.full_path}") + if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect(f"/logged_out{request.full_path}") if v and v.is_banned and not v.unban_utc: return render_template('errors/500.html', error=True, v=v), 500 diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index f49f467e1..ea4da07f2 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -1,5 +1,684 @@ -{% if g.system == 'mobile' %} - {% include "submission_listing_mobile.html" %} +{% if v %} + {% include "award_modal.html" %} +{% endif %} + +{% if request.host == 'pcmemes.net' %} + {% set cc='SPLASH MOUNTAIN' %} {% else %} - {% include "submission_listing_desktop.html" %} -{% endif %} \ No newline at end of file + {% set cc='COUNTRY CLUB' %} +{% endif %} + +{% if not v or v.highlightcomments %} + +{% endif %} + + + +
+ +{% for p in listing %} + + + +{% set ups=p.upvotes %} +{% set downs=p.downvotes %} +{% set score=ups-downs %} + +{% if v %} + {% set voted= p.voted %} +{% else %} + {% set voted=-2 %} +{% endif %} + +{% if p.active_flags %} + +Your {% if "saved" in request.full_path %}saved posts{% else %}posting history{% endif %} will show here.
+ {% if "saved" not in request.full_path %}Create a post{% endif %} +Their posting history will show here.
+++
Your {% if "saved" in request.full_path %}saved posts{% else %}posting history{% endif %} will show here.
- {% if "saved" not in request.full_path %}Create a post{% endif %} -Their posting history will show here.
---
Your {% if "saved" in request.full_path %}saved posts{% else %}posting history{% endif %} will show here.
- {% if "saved" not in request.full_path %}Create a post{% endif %} -Their posting history will show here.
---