mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-10 04:50:16 +02:00
Improves bootstrap compatibility, allowing for dropping in theme CSS. Also improves responsive design but still has a ways to go.
29 lines
742 B
Python
29 lines
742 B
Python
from allianceauth.services.hooks import MenuItemHook, UrlHook
|
|
|
|
from allianceauth import hooks
|
|
from allianceauth.hrapplications import urls
|
|
|
|
|
|
class ApplicationsMenu(MenuItemHook):
|
|
def __init__(self):
|
|
MenuItemHook.__init__(self,
|
|
'Applications',
|
|
'fa fa-file-o fa-fw',
|
|
'hrapplications:index',
|
|
navactive=['hrapplications:'])
|
|
|
|
|
|
@hooks.register('menu_item_hook')
|
|
def register_menu():
|
|
return ApplicationsMenu()
|
|
|
|
|
|
class ApplicationsUrls(UrlHook):
|
|
def __init__(self):
|
|
UrlHook.__init__(self, urls, 'hrapplications', r'^hr/')
|
|
|
|
|
|
@hooks.register('url_hook')
|
|
def register_url():
|
|
return ApplicationsUrls()
|