zcx
This commit is contained in:
parent
bfec94eb08
commit
00824ff6e6
2 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ def front_all(v, sub=None):
|
||||||
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, ccmode=ccmode, sub=sub)
|
return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page, ccmode=ccmode, sub=sub, home=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% if request.path in ('/', '/logged_out', '/logged_out/') or sub %}
|
{% if home %}
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
{% include "sidebar_" + SITE_NAME + ".html" %}
|
{% include "sidebar_" + SITE_NAME + ".html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue