fix: highlighting of active nav elements
This commit is contained in:
parent
a0ccd2ff8e
commit
14df5d5b68
|
@ -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",
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue