Generalize pretixdroid settings UI

This commit is contained in:
Raphael Michel
2018-01-06 22:45:32 +01:00
parent f054e700a2
commit f65f166ea6
9 changed files with 148 additions and 58 deletions

View File

@@ -19,13 +19,13 @@ def control_nav_import(sender, request=None, **kwargs):
return []
return [
{
'label': _('pretixdroid'),
'label': _('Check-in devices'),
'url': reverse('plugins:pretixdroid:config', kwargs={
'event': request.event.slug,
'organizer': request.event.organizer.slug,
}),
'active': (url.namespace == 'plugins:pretixdroid' and url.url_name == 'config'),
'icon': 'android',
'icon': 'mobile',
}
]