From 7971ff66c0474d58596ad9a885be4e80a634a4b2 Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Thu, 2 Jun 2022 12:16:03 +0300 Subject: [PATCH] Fix highlighting of the New tab after Bootstrap 5 upgrade --- view/changes.twig | 2 +- view/group-contents.twig | 2 +- view/group-index.twig | 2 +- view/light.twig | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/view/changes.twig b/view/changes.twig index 94a47fd3a..55bf1aa4a 100644 --- a/view/changes.twig +++ b/view/changes.twig @@ -19,9 +19,9 @@ {% endif %} {% if vocab.config.showChangeList %} - {% if vocab.config.showDeprecatedChanges %} {% set css_class = ['nav-link'] %} {% set css_class = css_class|merge(['active']) %} + {% if vocab.config.showDeprecatedChanges %}

{% trans "List vocabulary concepts by newest additions including removed" %}

{% else %} diff --git a/view/group-contents.twig b/view/group-contents.twig index 8ca52d2b5..91aa4f3fb 100644 --- a/view/group-contents.twig +++ b/view/group-contents.twig @@ -20,11 +20,11 @@ {% endif %} {% if vocab.config.showChangeList %} + {% set css_class = ['nav-link'] %} {% if vocab.config.showDeprecatedChanges %}

{% trans "List vocabulary concepts by newest additions including removed" %}

  • {% trans "Changes-and-deprecations-nav" %}
  • {% else %} - {% set css_class = ['nav-link'] %}

    {% trans "List vocabulary concepts by newest additions" %}

    {% endif %} diff --git a/view/group-index.twig b/view/group-index.twig index 877e850d7..3ed708de6 100644 --- a/view/group-index.twig +++ b/view/group-index.twig @@ -19,11 +19,11 @@ {% endif %} {% if vocab.config.showChangeList %} + {% set css_class = ['nav-link'] %} {% if vocab.config.showDeprecatedChanges %}

    {% trans "List vocabulary concepts by newest additions including removed" %}

  • {% trans "Changes-and-deprecations-nav" %}
  • {% else %} - {% set css_class = ['nav-link'] %}

    {% trans "List vocabulary concepts by newest additions" %}

    {% endif %} diff --git a/view/light.twig b/view/light.twig index 99528bb0b..f38c53211 100644 --- a/view/light.twig +++ b/view/light.twig @@ -68,8 +68,8 @@ {% endif %} {% if vocab.config.showChangeList %} - {% if vocab.config.showDeprecatedChanges %} {% if active_tab == 'new' %}{% set css_class = css_class|merge(['active']) %}{% endif %} + {% if vocab.config.showDeprecatedChanges %}

    {% trans "List vocabulary concepts by newest additions including removed" %}

    {% else %}