diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index b948805d..fcf901b4 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1653,6 +1653,7 @@ class HttpCli(object): "files": [], "taglist": [], "srvinf": srv_info, + "acct": self.uname, "perms": perms, "logues": logues, } @@ -1660,6 +1661,7 @@ class HttpCli(object): "vdir": quotep(self.vpath), "vpnodes": vpnodes, "files": [], + "acct": self.uname, "perms": json.dumps(perms), "taglist": [], "tag_order": [], diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index a119bebc..80a926bb 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -211,15 +211,39 @@ a, #files tbody div a:last-child { margin: .8em 0; } #srv_info { - opacity: .5; - font-size: .8em; - color: #fc5; + color: #a73; + background: #333; position: absolute; - top: .5em; + font-size: .8em; + top: .5em; left: 2em; + padding-right: .5em; } #srv_info span { - color: #fff; + color: #aaa; +} +#acc_info { + position: absolute; + font-size: .81em; + top: .5em; + right: 2em; + color: #999; +} +#acc_info span:before { + color: #f4c; + border-bottom: 1px solid rgba(255,68,204,0.6); + margin-right: .6em; +} +html.read #acc_info span:before { + content: 'Read-Only access'; +} +html.write #acc_info span:before { + content: 'Write-Only access'; +} +html.read.write #acc_info span:before { + content: 'Read-Write access'; + color: #999; + border: none; } #files tbody a.play { color: #e70; @@ -1001,10 +1025,14 @@ html.light .tgl.btn.on { } html.light #srv_info { color: #c83; + background: #eee; +} +html.light #srv_info, +html.light #acc_info { text-shadow: 1px 1px 0 #fff; } html.light #srv_info span { - color: #000; + color: #777; } html.light #treeul a+a { background: inherit; diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 818108ec..7c65a75c 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -121,7 +121,8 @@