Update the navigation app to use app registry and icon system
This commit is contained in:
@@ -13,6 +13,7 @@ COG = 'cog'
|
||||
COMPUTER_KEY = 'computer_key'
|
||||
CROSS = 'cross'
|
||||
DRAW_AIRBRUSH = 'draw_airbrush'
|
||||
DOCUMENT_SIGNATURE = 'document_signature'
|
||||
ERROR = 'error'
|
||||
GROUP = 'user',
|
||||
GROUP_ADD = 'group_add'
|
||||
@@ -34,6 +35,7 @@ PICTURES = 'pictures'
|
||||
PILL = 'pill'
|
||||
PLUGIN = 'plugin'
|
||||
RAINBOW = 'rainbow'
|
||||
ROUTING_TURNAROUND_RIGHT = 'routing_turnaround_right'
|
||||
SCRIPT = 'script'
|
||||
STORAGE = 'storage'
|
||||
TABLE = 'table'
|
||||
@@ -45,3 +47,4 @@ USER_DELETE = 'user_delete'
|
||||
VCARD = 'vcard'
|
||||
VCARD_EDIT = 'vcard_edit'
|
||||
WRENCH = 'wrench'
|
||||
ZOOM = 'zoom'
|
||||
|
||||
@@ -16,6 +16,7 @@ DICTIONARY = {
|
||||
COMPUTER_KEY: 'computer_key.png',
|
||||
CROSS: 'cross.png',
|
||||
DRAW_AIRBRUSH: 'draw_airbrush.png',
|
||||
DOCUMENT_SIGNATURE: 'document_signature.png',
|
||||
ERROR: 'error.png',
|
||||
GROUP: 'group.png',
|
||||
GROUP_ADD: 'group_add.png',
|
||||
@@ -36,6 +37,7 @@ DICTIONARY = {
|
||||
PILL: 'pill.png',
|
||||
PLUGIN: 'plugin.png',
|
||||
RAINBOW: 'rainbow.png',
|
||||
ROUTING_TURNAROUND_RIGHT: 'routing_turnaround_right.png',
|
||||
SCRIPT: 'script.png',
|
||||
STORAGE: 'storage.png',
|
||||
TABLE: 'table.png',
|
||||
@@ -47,4 +49,5 @@ DICTIONARY = {
|
||||
VCARD: 'vcard.png',
|
||||
VCARD_EDIT: 'vcard_edit.png',
|
||||
WRENCH: 'wrench.png',
|
||||
ZOOM: 'zoom.png',
|
||||
}
|
||||
|
||||
@@ -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']
|
||||
@@ -160,7 +160,7 @@ INSTALLED_APPS = (
|
||||
'common',
|
||||
# pagination needs to go after web_theme so that the pagination template is found
|
||||
'pagination',
|
||||
#'django_gpg',
|
||||
'django_gpg',
|
||||
'converter',
|
||||
#'trash',
|
||||
'user_management',
|
||||
|
||||
2
urls.py
2
urls.py
@@ -28,7 +28,7 @@ urlpatterns = patterns('',
|
||||
(r'^acls/', include('acls.urls')),
|
||||
#(r'^document_acls/', include('document_acls.urls')),
|
||||
#(r'^api/', include('rest_api.urls')),
|
||||
#(r'^gpg/', include('django_gpg.urls')),
|
||||
(r'^gpg/', include('django_gpg.urls')),
|
||||
#(r'^documents/signatures/', include('document_signatures.urls')),
|
||||
#(r'^mailer/', include('mailer.urls')),
|
||||
#(r'^workflows/', include('workflows.urls')),
|
||||
|
||||
Reference in New Issue
Block a user