From 14df5d5b68c609a63adf4645121b5c0889f50523 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 18 Dec 2023 01:11:53 +0100 Subject: [PATCH] fix: highlighting of active nav elements --- pretalx_musicrate/signals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pretalx_musicrate/signals.py b/pretalx_musicrate/signals.py index 1df731c..ea9af8a 100644 --- a/pretalx_musicrate/signals.py +++ b/pretalx_musicrate/signals.py @@ -10,7 +10,7 @@ def pretalx_musicrate_qrcode(sender, request, **kwargs): return [] return [ { - "active": request.resolver_match.url_name + "active": request.resolver_match.view_name == "plugins:pretalx_musicrate:qrcode", "icon": "star", "label": _("Collective Rating"), @@ -32,7 +32,7 @@ def pretalx_musicrate_settings(sender, request, **kwargs): "plugins:pretalx_musicrate:settings", kwargs={"event": request.event.slug}, ), - "active": request.resolver_match.url_name + "active": request.resolver_match.view_name == "plugins:pretalx_musicrate:settings", } ]