mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
removed unused 'title' from subsubmenus
This commit is contained in:
1 parent
61fefcff01
commit
ae83566653
6 files changed
+25
-46
No files matched your search
@@ -28,18 +28,14 @@ from django.views.generic import ListView
|
||||
from gettext import gettext as _
|
||||
|
||||
|
||||
# TODO: we do not use the title anymore, and 'items' is also a python keyword.
|
||||
# For all subsubmenus: let's remove title and just use the items list directly.
|
||||
# Make sure to update the tests too.
|
||||
subsubmenu = {'title': _('Users and Groups'),
|
||||
'items': [{'url': reverse_lazy('users:index'),
|
||||
'text': _('Users')},
|
||||
{'url': reverse_lazy('users:create'),
|
||||
'text': _('Create User')}]}
|
||||
subsubmenu = [{'url': reverse_lazy('users:index'),
|
||||
'text': _('Users')},
|
||||
{'url': reverse_lazy('users:create'),
|
||||
'text': _('Create User')}]
|
||||
|
||||
|
||||
class ContextMixin(object):
|
||||
"""View to add 'subsubmenu' and 'title' to the context."""
|
||||
"""Mixin to add 'subsubmenu' and 'title' to the context."""
|
||||
def get_context_data(self, **kwargs):
|
||||
"""Use self.title and the module-level subsubmenu"""
|
||||
context = super(ContextMixin, self).get_context_data(**kwargs)
|
||||
|
||||
Reference in new issue
Block a user