mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
always include custom css/js
This commit is contained in:
parent
5d3034c231
commit
a473e5e19a
|
@ -2403,6 +2403,16 @@ class HttpCli(object):
|
||||||
"themes": self.args.themes,
|
"themes": self.args.themes,
|
||||||
"turbolvl": self.args.turbo,
|
"turbolvl": self.args.turbo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if self.args.js_browser:
|
||||||
|
j2a["js"] = self.args.js_browser
|
||||||
|
|
||||||
|
if self.args.css_browser:
|
||||||
|
j2a["css"] = self.args.css_browser
|
||||||
|
|
||||||
|
if not self.conn.hsrv.prism:
|
||||||
|
j2a["no_prism"] = True
|
||||||
|
|
||||||
if not self.can_read:
|
if not self.can_read:
|
||||||
if is_ls:
|
if is_ls:
|
||||||
return self.tx_ls(ls_ret)
|
return self.tx_ls(ls_ret)
|
||||||
|
@ -2602,9 +2612,6 @@ class HttpCli(object):
|
||||||
if doctxt is not None:
|
if doctxt is not None:
|
||||||
j2a["doc"] = doctxt
|
j2a["doc"] = doctxt
|
||||||
|
|
||||||
if not self.conn.hsrv.prism:
|
|
||||||
j2a["no_prism"] = True
|
|
||||||
|
|
||||||
for d in dirs:
|
for d in dirs:
|
||||||
d["name"] += "/"
|
d["name"] += "/"
|
||||||
|
|
||||||
|
@ -2616,19 +2623,12 @@ class HttpCli(object):
|
||||||
else:
|
else:
|
||||||
j2a["files"] = dirs + files
|
j2a["files"] = dirs + files
|
||||||
|
|
||||||
j2a["logues"] = logues
|
|
||||||
j2a["taglist"] = taglist
|
j2a["taglist"] = taglist
|
||||||
j2a["txt_ext"] = self.args.textfiles.replace(",", " ")
|
j2a["txt_ext"] = self.args.textfiles.replace(",", " ")
|
||||||
|
|
||||||
if "mth" in vn.flags:
|
if "mth" in vn.flags:
|
||||||
j2a["def_hcols"] = vn.flags["mth"].split(",")
|
j2a["def_hcols"] = vn.flags["mth"].split(",")
|
||||||
|
|
||||||
if self.args.js_browser:
|
|
||||||
j2a["js"] = self.args.js_browser
|
|
||||||
|
|
||||||
if self.args.css_browser:
|
|
||||||
j2a["css"] = self.args.css_browser
|
|
||||||
|
|
||||||
html = self.j2s(tpl, **j2a)
|
html = self.j2s(tpl, **j2a)
|
||||||
self.reply(html.encode("utf-8", "replace"))
|
self.reply(html.encode("utf-8", "replace"))
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue