mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 21:43:08 -07:00
Fix nth and nih
This commit is contained in:
parent
2f57228fd4
commit
a996aa6366
|
|
@ -1558,7 +1558,6 @@ def add_optouts(ap):
|
|||
ap2.add_argument("--no-mv", action="store_true", help="disable move/rename operations")
|
||||
ap2.add_argument("--no-cp", action="store_true", help="disable copy operations")
|
||||
ap2.add_argument("--no-fs-abrt", action="store_true", help="disable ability to abort ongoing copy/move")
|
||||
ap2.add_argument("-nth", action="store_true", help="no title hostname; don't show \033[33m--name\033[0m in <title>")
|
||||
ap2.add_argument("-nih", action="store_true", help="no info hostname -- don't show in UI")
|
||||
ap2.add_argument("-nid", action="store_true", help="no info disk-usage -- don't show in UI. This is the same as --du-who no")
|
||||
ap2.add_argument("-nb", action="store_true", help="no powered-by-copyparty branding in UI")
|
||||
|
|
|
|||
|
|
@ -6941,7 +6941,7 @@ class HttpCli(object):
|
|||
"have_b_u": (self.can_write and self.uparam.get("b") == "u"),
|
||||
"sb_lg": vn.js_ls["sb_lg"],
|
||||
"url_suf": url_suf,
|
||||
"title": html_escape("%s %s" % (self.args.bname, self.vpath), crlf=True),
|
||||
"title": html_escape((self.vpath or "copyparty") if self.args.nih else "%s %s" % (self.args.bname, self.vpath), crlf=True),
|
||||
"srv_info": srv_infot,
|
||||
"dtheme": self.args.theme,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9395,7 +9395,7 @@ function wintitle(txt, noname) {
|
|||
|
||||
txt += uricom_dec(get_evpath()).slice(1, -1).split('/').pop();
|
||||
|
||||
document.title = txt;
|
||||
document.title = txt || "copyparty";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue