mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-10 13:00:16 +02:00
Implement url hooks. Many apps are now removable. Default to assuming services have been migrated.
15 lines
439 B
Python
15 lines
439 B
Python
from services.hooks import MenuItemHook, UrlHook
|
|
from alliance_auth import hooks
|
|
from fleetactivitytracking import urls
|
|
|
|
|
|
@hooks.register('menu_item_hook')
|
|
def register_menu():
|
|
return MenuItemHook('Fleet Activity Tracking', 'fa fa-users fa-lightbulb-o fa-fw grayiconecolor', 'fatlink:view',
|
|
navactive=['fatlink:'])
|
|
|
|
|
|
@hooks.register('url_hook')
|
|
def register_url():
|
|
return UrlHook(urls, 'fatlink', r'^fat/')
|