move have_zls into authsrv.py

This commit is contained in:
AppleTheGolden 2025-10-12 00:49:23 +02:00
parent bd8f832683
commit e1b1f14cb3
No known key found for this signature in database
GPG key ID: F6AC8A62154C42AA
3 changed files with 3 additions and 3 deletions

View file

@ -3022,6 +3022,7 @@ class AuthSrv(object):
"have_shr": self.args.shr, "have_shr": self.args.shr,
"shr_who": vf["shr_who"], "shr_who": vf["shr_who"],
"have_zip": not self.args.no_zip, "have_zip": not self.args.no_zip,
"have_zls": not self.args.no_zls,
"have_mv": not self.args.no_mv, "have_mv": not self.args.no_mv,
"have_del": not self.args.no_del, "have_del": not self.args.no_del,
"have_unpost": int(self.args.unpost), "have_unpost": int(self.args.unpost),

View file

@ -6629,6 +6629,7 @@ class HttpCli(object):
"acct": self.uname, "acct": self.uname,
"perms": perms, "perms": perms,
} }
# also see `js_htm` in authsrv.py
j2a = { j2a = {
"cgv1": vn.js_htm, "cgv1": vn.js_htm,
"cgv": cgv, "cgv": cgv,
@ -6638,7 +6639,6 @@ class HttpCli(object):
"taglist": [], "taglist": [],
"have_tags_idx": int(e2t), "have_tags_idx": int(e2t),
"have_b_u": (self.can_write and self.uparam.get("b") == "u"), "have_b_u": (self.can_write and self.uparam.get("b") == "u"),
"have_zls": int(not self.args.no_zls),
"sb_lg": vn.js_ls["sb_lg"], "sb_lg": vn.js_ls["sb_lg"],
"url_suf": url_suf, "url_suf": url_suf,
"title": html_escape("%s %s" % (self.args.bname, self.vpath), crlf=True), "title": html_escape("%s %s" % (self.args.bname, self.vpath), crlf=True),

View file

@ -139,8 +139,7 @@
have_tags_idx = {{ have_tags_idx }}, have_tags_idx = {{ have_tags_idx }},
sb_lg = "{{ sb_lg }}", sb_lg = "{{ sb_lg }}",
logues = {{ logues|tojson if sb_lg else "[]" }}, logues = {{ logues|tojson if sb_lg else "[]" }},
ls0 = {{ ls0|tojson }}, ls0 = {{ ls0|tojson }};
have_zls = {{ have_zls }};
var STG = window.localStorage; var STG = window.localStorage;
document.documentElement.className = (STG && STG.cpp_thm) || dtheme; document.documentElement.className = (STG && STG.cpp_thm) || dtheme;