mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
added support for plugin nav bar links
This commit is contained in:
12
netbox/extras/plugins/context_processors.py
Normal file
12
netbox/extras/plugins/context_processors.py
Normal file
@ -0,0 +1,12 @@
|
||||
from . import get_nav_menu_link_classes
|
||||
|
||||
|
||||
def nav_menu_links(request):
|
||||
"""
|
||||
Retrieve and expose all plugin registered nav links
|
||||
"""
|
||||
nav_menu_links = get_nav_menu_link_classes()
|
||||
|
||||
return {
|
||||
'plugin_nav_menu_links': nav_menu_links
|
||||
}
|
Reference in New Issue
Block a user