fgd
This commit is contained in:
parent
c68fc2cefe
commit
b421749ac1
2 changed files with 1 additions and 3 deletions
|
@ -263,7 +263,7 @@ def front_all(v):
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
if request.headers.get("Authorization"): return {"data": [x.json for x in posts], "next_exists": next_exists}
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,10 +43,8 @@
|
||||||
<div class="text-small font-weight-bold mr-2"></div>
|
<div class="text-small font-weight-bold mr-2"></div>
|
||||||
|
|
||||||
{% if v.admin_level > 1 or v.club_allowed != False %}
|
{% if v.admin_level > 1 or v.club_allowed != False %}
|
||||||
{% set ccmode = request.args.get("ccmode") %}
|
|
||||||
<div class="toggle-cc-mode">
|
<div class="toggle-cc-mode">
|
||||||
<button class="btn btn-secondary ccMode-toggle" type="button" id="toggleCCMode">
|
<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=="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 %}
|
{% 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>
|
</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue