mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Expose regsitry in templates using existing context processor for settings
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
from extras.registry import registry
|
||||
|
||||
|
||||
def plugin_menu_items(request):
|
||||
"""
|
||||
Retrieve and expose all plugin registered navigation menu items.
|
||||
"""
|
||||
return {
|
||||
'plugin_menu_items': registry['plugin_menu_items']
|
||||
}
|
||||
Reference in New Issue
Block a user