From d4115b6c6d22770763c708b29e8d9a380c6ea50d Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 20 Oct 2021 11:34:24 -0700 Subject: [PATCH] Repair menu highlighting, both for main menu and submenus During the recent improvements made on the website, the menus and submenu highlighting for selected menus fell into disarray. Correction requires changes to the CSS and templates both, because Django doesn't really have a convenient way to set variables in templates to use to solve this. There are still a few submenu items highlighting not working even after this commit. More work needs to be done. --- www/conservancy/static/activities/index.html | 21 +++++--- .../static/copyleft-compliance/about.html | 2 +- .../static/copyleft-compliance/vizio.html | 4 +- .../vmware-code-similarity.html | 2 +- .../vmware-lawsuit-appeal.html | 2 +- .../vmware-lawsuit-faq.html | 2 +- www/conservancy/static/css/conservancy.css | 22 ++++++--- www/conservancy/static/press/kit.html | 2 +- www/conservancy/static/press/qanda.html | 4 +- www/conservancy/templates/base_about.html | 5 +- www/conservancy/templates/base_blog.html | 2 +- .../templates/base_compliance.html | 8 +-- .../templates/base_conservancy.html | 12 ++--- www/conservancy/templates/base_learn.html | 3 +- www/conservancy/templates/base_news.html | 2 +- www/conservancy/templates/base_press.html | 2 +- www/conservancy/templates/base_projects.html | 2 +- www/conservancy/templates/base_vizio.html | 49 +++++++++++++++++++ www/conservancy/templates/frontpage.html | 2 +- .../templates/news/pressrelease_list.html | 2 +- .../submenus/what_we_do_partial.html | 4 +- .../submenus/who_we_are_partial.html | 14 +++--- 22 files changed, 116 insertions(+), 52 deletions(-) create mode 100644 www/conservancy/templates/base_vizio.html diff --git a/www/conservancy/static/activities/index.html b/www/conservancy/static/activities/index.html index 5842181b..0cc0eb3d 100644 --- a/www/conservancy/static/activities/index.html +++ b/www/conservancy/static/activities/index.html @@ -1,6 +1,7 @@ {% extends "base_conservancy.html" %} {% load cache %} {% load humanize %} +{% block category %}WhatWeDo{% endblock %} {% block head %} @@ -10,17 +11,21 @@ {% block outercontent %}
-