fix: highlighting of active nav elements

This commit is contained in:
Luca 2023-12-18 01:11:53 +01:00
parent a0ccd2ff8e
commit 14df5d5b68
1 changed files with 2 additions and 2 deletions

View File

@ -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",
}
]