fix: allow override for Admin menu title
This commit is contained in:
parent
1e3647d27b
commit
a66312b667
|
@ -143,6 +143,8 @@ class MenuHandler(GenericHandler):
|
||||||
which will ultimately be one element of the final list of
|
which will ultimately be one element of the final list of
|
||||||
dicts as described in :class:`MenuHandler`.
|
dicts as described in :class:`MenuHandler`.
|
||||||
|
|
||||||
|
:param title: Override the menu title; default is "Admin".
|
||||||
|
|
||||||
:param include_people: You can pass this flag to indicate the
|
:param include_people: You can pass this flag to indicate the
|
||||||
admin menu should contain an entry for the "People" view.
|
admin menu should contain an entry for the "People" view.
|
||||||
"""
|
"""
|
||||||
|
@ -198,7 +200,7 @@ class MenuHandler(GenericHandler):
|
||||||
])
|
])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'title': "Admin",
|
'title': kwargs.get('title', "Admin"),
|
||||||
'type': 'menu',
|
'type': 'menu',
|
||||||
'items': items,
|
'items': items,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue