From f93212a665fcecb25f7c8a35ac5a8be85dc47b21 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 27 Oct 2021 01:27:59 +0200 Subject: [PATCH] add logout button to contrl panel --- copyparty/web/splash.css | 16 +++++++++++++++- copyparty/web/splash.html | 3 ++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/copyparty/web/splash.css b/copyparty/web/splash.css index c2ceb0d1..2bde5add 100644 --- a/copyparty/web/splash.css +++ b/copyparty/web/splash.css @@ -25,10 +25,20 @@ a { color: #047; background: #fff; text-decoration: none; - border-bottom: 1px solid #aaa; + border-bottom: 1px solid #8ab; border-radius: .2em; padding: .2em .8em; } +.refresh, +.logout { + float: right; + margin-top: -.2em; +} +.logout { + color: #c04; + border-color: #c7a; + margin-right: .5em; +} #repl { border: none; background: none; @@ -81,6 +91,10 @@ html.dark a { background: #057; border-color: #37a; } +html.dark .logout { + background: #804; + border-color: #c28; +} html.dark input { color: #fff; background: #626; diff --git a/copyparty/web/splash.html b/copyparty/web/splash.html index f762a0b8..e35bc94c 100644 --- a/copyparty/web/splash.html +++ b/copyparty/web/splash.html @@ -12,11 +12,12 @@
- refresh + refresh {%- if this.uname == '*' %}

howdy stranger   (you're not logged in)

{%- else %} + logout

welcome back, {{ this.uname }}

{%- endif %}