From ce6bc79b2c538c5f5d6afc5968bf25cdefc74a6c Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Fri, 9 Dec 2022 20:34:46 -0800 Subject: [PATCH] Post rebranding tweaks to web ui (#1027) - Add a label to system name, and modify the style sheet to hide it in the modern theme - Restore the Control Page subtitle, and hide it on small screens - Tweak some wordings and help text --- python/web/service-infra/502.html | 4 ++-- python/web/src/static/themes/modern/style.css | 8 ++++++++ python/web/src/templates/base.html | 12 ++++++++---- python/web/src/templates/index.html | 6 +++--- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/python/web/service-infra/502.html b/python/web/service-infra/502.html index 5cbc8d0a..39331d61 100644 --- a/python/web/service-infra/502.html +++ b/python/web/service-infra/502.html @@ -1,13 +1,13 @@ - PiSCSI Web UI is Starting + PiSCSI Web is Starting
-

PiSCSI Web UI is Starting....

+

PiSCSI Web Interface is Starting....

This page will automatically refresh.

First boot and upgrades can take a second while resolving dependencies.

If you're seeing this page for over a minute, please check the logs at sudo journalctl -f

diff --git a/python/web/src/static/themes/modern/style.css b/python/web/src/static/themes/modern/style.css index 5e269791..3a7d9453 100644 --- a/python/web/src/static/themes/modern/style.css +++ b/python/web/src/static/themes/modern/style.css @@ -241,6 +241,10 @@ div.header div.hostname span { font-size: 0.75rem; } +div.header div.hostname span.label { + display: none; +} + div.header div.login-status { order: 10; } @@ -275,6 +279,10 @@ div.header div.authentication-disabled { min-height: 8.875rem; /* Safari 14 iOS and iPad OS */ } + div.header div.title span.subtitle { + display: none; + } + div.header div.title a { display: block; background: url("/static/logo.png") no-repeat; diff --git a/python/web/src/templates/base.html b/python/web/src/templates/base.html index 354363a5..9ce1e234 100644 --- a/python/web/src/templates/base.html +++ b/python/web/src/templates/base.html @@ -51,13 +51,13 @@ {% else %} diff --git a/python/web/src/templates/index.html b/python/web/src/templates/index.html index 57b07ade..7c56653b 100644 --- a/python/web/src/templates/index.html +++ b/python/web/src/templates/index.html @@ -461,7 +461,7 @@ @@ -513,7 +513,7 @@ {{ _("Download File from the Web") }} @@ -730,7 +730,7 @@ {{ _("System Operations") }}