Update the navigation app to use app registry and icon system

This commit is contained in:
Roberto Rosario
2012-09-08 03:48:46 -04:00
parent fd5777badb
commit b61be09fe2
6 changed files with 23 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ COG = 'cog'
COMPUTER_KEY = 'computer_key' COMPUTER_KEY = 'computer_key'
CROSS = 'cross' CROSS = 'cross'
DRAW_AIRBRUSH = 'draw_airbrush' DRAW_AIRBRUSH = 'draw_airbrush'
DOCUMENT_SIGNATURE = 'document_signature'
ERROR = 'error' ERROR = 'error'
GROUP = 'user', GROUP = 'user',
GROUP_ADD = 'group_add' GROUP_ADD = 'group_add'
@@ -34,6 +35,7 @@ PICTURES = 'pictures'
PILL = 'pill' PILL = 'pill'
PLUGIN = 'plugin' PLUGIN = 'plugin'
RAINBOW = 'rainbow' RAINBOW = 'rainbow'
ROUTING_TURNAROUND_RIGHT = 'routing_turnaround_right'
SCRIPT = 'script' SCRIPT = 'script'
STORAGE = 'storage' STORAGE = 'storage'
TABLE = 'table' TABLE = 'table'
@@ -45,3 +47,4 @@ USER_DELETE = 'user_delete'
VCARD = 'vcard' VCARD = 'vcard'
VCARD_EDIT = 'vcard_edit' VCARD_EDIT = 'vcard_edit'
WRENCH = 'wrench' WRENCH = 'wrench'
ZOOM = 'zoom'

View File

@@ -16,6 +16,7 @@ DICTIONARY = {
COMPUTER_KEY: 'computer_key.png', COMPUTER_KEY: 'computer_key.png',
CROSS: 'cross.png', CROSS: 'cross.png',
DRAW_AIRBRUSH: 'draw_airbrush.png', DRAW_AIRBRUSH: 'draw_airbrush.png',
DOCUMENT_SIGNATURE: 'document_signature.png',
ERROR: 'error.png', ERROR: 'error.png',
GROUP: 'group.png', GROUP: 'group.png',
GROUP_ADD: 'group_add.png', GROUP_ADD: 'group_add.png',
@@ -36,6 +37,7 @@ DICTIONARY = {
PILL: 'pill.png', PILL: 'pill.png',
PLUGIN: 'plugin.png', PLUGIN: 'plugin.png',
RAINBOW: 'rainbow.png', RAINBOW: 'rainbow.png',
ROUTING_TURNAROUND_RIGHT: 'routing_turnaround_right.png',
SCRIPT: 'script.png', SCRIPT: 'script.png',
STORAGE: 'storage.png', STORAGE: 'storage.png',
TABLE: 'table.png', TABLE: 'table.png',
@@ -47,4 +49,5 @@ DICTIONARY = {
VCARD: 'vcard.png', VCARD: 'vcard.png',
VCARD_EDIT: 'vcard_edit.png', VCARD_EDIT: 'vcard_edit.png',
WRENCH: 'wrench.png', WRENCH: 'wrench.png',
ZOOM: 'zoom.png',
} }

View File

@@ -1,6 +1,7 @@
from __future__ import absolute_import from __future__ import absolute_import
from icons.literals import ERROR from icons.literals import ERROR, ROUTING_TURNAROUND_RIGHT
from icons import Icon from icons import Icon
icon_error = Icon(ERROR) icon_error = Icon(ERROR)
icon_navigation = Icon(ROUTING_TURNAROUND_RIGHT)

View 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']

View File

@@ -160,7 +160,7 @@ INSTALLED_APPS = (
'common', 'common',
# pagination needs to go after web_theme so that the pagination template is found # pagination needs to go after web_theme so that the pagination template is found
'pagination', 'pagination',
#'django_gpg', 'django_gpg',
'converter', 'converter',
#'trash', #'trash',
'user_management', 'user_management',

View File

@@ -28,7 +28,7 @@ urlpatterns = patterns('',
(r'^acls/', include('acls.urls')), (r'^acls/', include('acls.urls')),
#(r'^document_acls/', include('document_acls.urls')), #(r'^document_acls/', include('document_acls.urls')),
#(r'^api/', include('rest_api.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'^documents/signatures/', include('document_signatures.urls')),
#(r'^mailer/', include('mailer.urls')), #(r'^mailer/', include('mailer.urls')),
#(r'^workflows/', include('workflows.urls')), #(r'^workflows/', include('workflows.urls')),