diff --git a/python/web/src/static/themes/classic/style.css b/python/web/src/static/themes/classic/style.css index fa9d62e9..d77de45a 100644 --- a/python/web/src/static/themes/classic/style.css +++ b/python/web/src/static/themes/classic/style.css @@ -21,6 +21,11 @@ td { margin: none; } +th { + color: white; + background-color: black; +} + h1 { color: white; font-size: 20px; @@ -97,6 +102,10 @@ div.flash div.info { background-color: #0d6efd; } +div.flash > div a { + display: none; +} + td.inactive { text-align: center; background-color: tan; diff --git a/python/web/src/static/themes/modern/icons/manual copy.svg b/python/web/src/static/themes/modern/icons/home.svg similarity index 55% rename from python/web/src/static/themes/modern/icons/manual copy.svg rename to python/web/src/static/themes/modern/icons/home.svg index 12ffcbc4..7bb31b23 100644 --- a/python/web/src/static/themes/modern/icons/manual copy.svg +++ b/python/web/src/static/themes/modern/icons/home.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/python/web/src/static/themes/modern/icons/manual.svg b/python/web/src/static/themes/modern/icons/manual.svg deleted file mode 100644 index 12ffcbc4..00000000 --- a/python/web/src/static/themes/modern/icons/manual.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python/web/src/static/themes/modern/style.css b/python/web/src/static/themes/modern/style.css index cd296c76..e057da98 100644 --- a/python/web/src/static/themes/modern/style.css +++ b/python/web/src/static/themes/modern/style.css @@ -545,7 +545,7 @@ div.flash > div { } div.flash > div a { - display: inline-block !important; + display: inline-block; padding: 0.25rem 0.75rem; margin-left: auto; color: #fff; @@ -948,27 +948,6 @@ section#system div.power-control { } } -/* - ------------------------------------------------------------------------------ - Index > Section: Manual - ------------------------------------------------------------------------------ - */ -section#manual { - margin: 2rem 0 1rem; -} - -section#manual a { - margin: auto; - display: block; - padding: 0.25rem 0 0.25rem 2rem; - background: url("icons/manual.svg") no-repeat left center; - font-weight: bold; -} - -section#manual a p { - margin: 0; -} - /* ------------------------------------------------------------------------------ Admin > Section: Services @@ -1072,3 +1051,18 @@ body.page-manpage div.content p.home { margin-top: 2rem; font-weight: bold; } + +/* + ------------------------------------------------------------------------------ + Base > Back + ------------------------------------------------------------------------------ + */ +a.back { + padding: 0.25rem 0 0.25rem 2rem; + font-weight: bold; + background: url("icons/home.svg") no-repeat left center; +} + +a.back span.separator { + display: none; +} diff --git a/python/web/src/templates/admin.html b/python/web/src/templates/admin.html index d3c9d343..c28d41a4 100644 --- a/python/web/src/templates/admin.html +++ b/python/web/src/templates/admin.html @@ -189,6 +189,5 @@ -

{{ _("Go to Home") }}

- +
{% endblock content %} diff --git a/python/web/src/templates/base.html b/python/web/src/templates/base.html index 4ebdfd6a..0c555f72 100644 --- a/python/web/src/templates/base.html +++ b/python/web/src/templates/base.html @@ -95,7 +95,7 @@ {% else %}
{{ message }}
{% endif %} - + {% endfor %} {% endif %} @@ -105,7 +105,15 @@ {{ content_class }} {% block content %}{% endblock content %} + {% if not is_root_page %} +
+ << {{ _("Go to Home") }} +
+ {% endif %} -

{{ _("Go to Home") }}

+
{% endblock content %} diff --git a/python/web/src/web.py b/python/web/src/web.py index bb61968f..2e85722c 100644 --- a/python/web/src/web.py +++ b/python/web/src/web.py @@ -261,6 +261,7 @@ def index(): return response( template="index.html", page_title=_("PiSCSI Control Page"), + is_root_page=True, netinfo=piscsi_cmd.get_network_info(), bridge_configured=sys_cmd.is_bridge_setup(), devices=formatted_devices, @@ -347,6 +348,7 @@ def upload_page(): return response( template="upload.html", page_title=_("PiSCSI File Upload"), + is_root_page=True, images_subdirs=file_cmd.list_subdirs(server_info["image_dir"]), shared_subdirs=file_cmd.list_subdirs(FILE_SERVER_DIR), file_server_dir_exists=Path(FILE_SERVER_DIR).exists(),