Update the navigation app to use app registry and icon system
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from icons.literals import ERROR
|
||||
from icons.literals import ERROR, ROUTING_TURNAROUND_RIGHT
|
||||
from icons import Icon
|
||||
|
||||
icon_error = Icon(ERROR)
|
||||
icon_navigation = Icon(ROUTING_TURNAROUND_RIGHT)
|
||||
|
||||
13
apps/navigation/registry.py
Normal file
13
apps/navigation/registry.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from smart_settings import LocalScope
|
||||
|
||||
from .icons import icon_navigation
|
||||
|
||||
name = 'navigation'
|
||||
label = _(u'Navigation')
|
||||
description = _(u'Handles UI navigation, menus and links.')
|
||||
icon = icon_navigation
|
||||
dependencies = ['app_registry', 'permissions']
|
||||
Reference in New Issue
Block a user