remotes/1693045480750635534/spooky-22
Aevann1 2022-01-31 23:44:32 +02:00
parent 8704c83ef8
commit fb18ca3a55
2 changed files with 1 additions and 3 deletions

View File

@ -263,7 +263,7 @@ def front_all(v):
g.db.commit()
if request.headers.get("Authorization"): return {"data": [x.json for x in posts], "next_exists": next_exists}
return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page)
return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page, ccmode=ccmode)

View File

@ -43,10 +43,8 @@
<div class="text-small font-weight-bold mr-2"></div>
{% if v.admin_level > 1 or v.club_allowed != False %}
{% set ccmode = request.args.get("ccmode") %}
<div class="toggle-cc-mode">
<button class="btn btn-secondary ccMode-toggle" type="button" id="toggleCCMode">
{% if ccmode=="true"%}<a class="cc-activated" href="?sort={{sort}}&t={{t}}&ccmode=false"><i class="fas fa-angry mr-2"></i>COUNTRY CLUB MODE: ACTIVATED</a>{% endif %}
{% if ccmode=="false" or not ccmode %}<a class="cc-deactivated" href="?sort={{sort}}&t={{t}}&ccmode=true"><i class="fas fa-angry mr-2"></i>CC Mode</a>{% endif %}
</button>