Converted apps to the new main menu navigation method and improved navigation links in some apps

This commit is contained in:
Roberto Rosario
2011-06-08 01:26:50 -04:00
parent 2a2c67de4e
commit 8fa4f641e4
11 changed files with 63 additions and 65 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
from django.utils.translation import ugettext_lazy as _
from navigation.api import register_links, register_menu
from navigation.api import register_links
from permissions.api import register_permission, set_namespace_title
PERMISSION_HISTORY_VIEW = {'namespace': 'history', 'name': u'history_view', 'label': _(u'Access the history app')}
@@ -11,4 +11,4 @@ register_permission(PERMISSION_HISTORY_VIEW)
# TODO: support permissions AND operand
history_list = {'text': _(u'history'), 'view': 'history_list', 'famfam': 'book', 'permissions': [PERMISSION_HISTORY_VIEW]}
register_links(['history_list'], [history_list], menu_name='sidebar')
#register_links(['history_view'], [history_list], menu_name='sidebar')