From af1104811f68bd30440615bae93db16d1d18cc1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Fri, 18 Feb 2022 21:57:27 +0100 Subject: [PATCH] Announce li properly in navbar --- scipost_django/scipost/templates/scipost/navbar.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scipost_django/scipost/templates/scipost/navbar.html b/scipost_django/scipost/templates/scipost/navbar.html index a6044acbe..05b5abcc2 100644 --- a/scipost_django/scipost/templates/scipost/navbar.html +++ b/scipost_django/scipost/templates/scipost/navbar.html @@ -88,7 +88,7 @@ {% endif %} </li> - <li class="nav-item dropdown"> + <li class="nav-item dropdown" role="presentation"> <a class="nav-link dropdown-toggle" href="#" id="MoreDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-trigger="hover">More</a> <ul class="dropdown-menu" aria-labelledby="MoreDropdown"> <li> @@ -154,7 +154,7 @@ </li> {% if user.is_authenticated %} - <li class="nav-item dropdown mx-2 ms-lg-auto"> + <li class="nav-item dropdown mx-2 ms-lg-auto" role="presentation"> <a class="nav-link dropdown-toggle" href="#" id="PersonalDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-trigger="hover"> Logged in as {% if user.last_name %}{% if user.contributor %}{{ user.contributor.profile.get_title_display }} {% endif %}{{ user.first_name }} {{ user.last_name }}{% else %}{{ user.username }}{% endif %}</a> @@ -200,7 +200,7 @@ <a href="{% url 'helpdesk:ticket_create' %}" target="_blank" class="nav-link"><span style="font-size: 80%;" data-bs-toggle="tooltip" data-bs-html="true" title="Notice something wrong?<br/>Open a support ticket">{% include 'bi/sticky-fill.html' %}</span></a> </li> {% else %} - <li class="mx-2 mx-lg-auto nav-item{% if request.path == '/login/' %} active{% endif %}"> + <li class="mx-2 mx-lg-auto nav-item{% if request.path == '/login/' %} active{% endif %}" role="presentation"> <a class="nav-link" href="{% url 'scipost:login' %}?next={{ request.path }}">Login or register</a> </li> {% endif %} -- GitLab