Basraah e68c840dad CSS Fixes and cleanup
Improves bootstrap compatibility, allowing for dropping in theme CSS.
Also improves responsive design but still has a ways to go.
2017-09-23 18:03:43 +10:00

23 lines
628 B
Python

from allianceauth import hooks
from .hooks import MenuItemHook
from .hooks import ServicesHook
class Services(MenuItemHook):
def __init__(self):
MenuItemHook.__init__(self,
'Services',
'fa fa-cogs fa-fw',
'services:services', 100)
def render(self, request):
for svc in ServicesHook.get_services():
if svc.service_active_for_user(request.user):
return MenuItemHook.render(self, request)
return ''
@hooks.register('menu_item_hook')
def register_menu():
return Services()