From cfc3390b81a97d86d7b26c98ce69c124d34e50f3 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Tue, 14 Feb 2023 18:48:53 -0800 Subject: [PATCH] Noscript fallback messages; relocate js into templates (#1097) --- python/web/src/static/themes/modern/style.css | 9 +++++++++ python/web/src/templates/base.html | 14 ------------- python/web/src/templates/index.html | 20 +++++++++++++++++++ python/web/src/templates/upload.html | 8 +++++++- 4 files changed, 36 insertions(+), 15 deletions(-) diff --git a/python/web/src/static/themes/modern/style.css b/python/web/src/static/themes/modern/style.css index 978d9c6a..f7fb707d 100644 --- a/python/web/src/static/themes/modern/style.css +++ b/python/web/src/static/themes/modern/style.css @@ -53,6 +53,15 @@ input[type="radio"] { margin: 0 0.1rem 0 0.75rem; } +div.noscriptmsg { + background: var(--danger); + border-radius: var(--border-radius); + padding: 0.5rem; + font-size: 0.75rem; + display: inline-block; + color: #fff; +} + /* ------------------------------------------------------------------------------ Tables diff --git a/python/web/src/templates/base.html b/python/web/src/templates/base.html index e3c0f75b..6beb33be 100644 --- a/python/web/src/templates/base.html +++ b/python/web/src/templates/base.html @@ -23,20 +23,6 @@ - - - - diff --git a/python/web/src/templates/index.html b/python/web/src/templates/index.html index 06adc9b5..d6aa285f 100644 --- a/python/web/src/templates/index.html +++ b/python/web/src/templates/index.html @@ -1,6 +1,18 @@ {% extends "base.html" %} {% block content %} + +
@@ -380,6 +392,14 @@

{{ _("Upload Files (new tab)") }}

+
diff --git a/python/web/src/templates/upload.html b/python/web/src/templates/upload.html index 533e9ac9..73a205a2 100644 --- a/python/web/src/templates/upload.html +++ b/python/web/src/templates/upload.html @@ -20,6 +20,8 @@ + + - + {% endblock content %}