From aeb63cd482962d76f89b65d6f33877aa1b0c9e16 Mon Sep 17 00:00:00 2001 From: eclipse Date: Fri, 9 May 2025 09:16:55 +0200 Subject: [PATCH] reworked main menu for easier modification; added "aria-current" attribute --- the_works/static/the_works.css | 7 +++++- the_works/templates/_nav.html | 41 ++++++++++++++++++++++++---------- 2 files changed, 35 insertions(+), 13 deletions(-) diff --git a/the_works/static/the_works.css b/the_works/static/the_works.css index 4a126ce..c0cb44e 100644 --- a/the_works/static/the_works.css +++ b/the_works/static/the_works.css @@ -83,4 +83,9 @@ svg { label:has([type="checkbox"]) { width: 100%; -} \ No newline at end of file +} + +#navbar li[aria-current=page]>a, +#navbar li[aria-current=page]>details>summary>a { + text-decoration: underline; +} diff --git a/the_works/templates/_nav.html b/the_works/templates/_nav.html index fc08e09..e7ff65c 100644 --- a/the_works/templates/_nav.html +++ b/the_works/templates/_nav.html @@ -1,3 +1,17 @@ +{% set menu = ( + ("Texte", url_for("text.all")), + ("Werke", url_for("werk.all")), + ("Basisdaten", ( + ("Genres", url_for("genre.all")), + ("Herausgeber:innen", url_for("herausgeber.all")), + ("Pseudonyme", url_for("pseudonym.all")), + ("Reihen", url_for("reihe.all")), + ("Sprachen", url_for("sprache.all")), + ("Textformen", url_for("textform.all")), + ("Verlage", url_for("verlag.all")), + ("Werksformen", url_for("werksform.all")) + )) +) %}