Move tools and setup links to the user profile link

This commit is contained in:
Roberto Rosario
2015-04-05 03:53:27 -04:00
parent d6afddad3d
commit c98a3a57c2

View File

@@ -19,7 +19,9 @@ from .links import (
link_current_user_locale_profile_edit, link_license, link_logout,
link_maintenance_menu, link_password_change, link_setup, link_tools
)
from .menus import menu_main, menu_secondary, menu_setup, menu_tools
from .menus import (
menu_facet, menu_main, menu_secondary, menu_setup, menu_tools
)
from .models import (
AnonymousUserSingleton, AutoAdminSingleton, UserLocaleProfile
)
@@ -93,6 +95,7 @@ class CommonApp(apps.AppConfig):
verbose_name = _('Common')
def ready(self):
menu_facet.bind_links(links=[link_current_user_details, link_current_user_locale_profile_details, link_tools, link_setup], sources=['common:current_user_details', 'common:current_user_edit', 'common:current_user_locale_profile_details', 'common:current_user_locale_profile_edit', 'common:password_change_view', 'common:setup_list', 'common:tools_list'])
menu_main.bind_links(links=[link_about], position=-1)
menu_secondary.bind_links(
links=[link_about, link_license],
@@ -100,15 +103,11 @@ class CommonApp(apps.AppConfig):
)
menu_secondary.bind_links(
links=[
link_current_user_details, link_current_user_edit,
link_current_user_locale_profile_details,
link_current_user_locale_profile_edit,
link_password_change, link_tools, link_setup, link_logout
link_current_user_edit, link_current_user_locale_profile_edit,
link_password_change, link_logout
],
sources=['common:current_user_details', 'common:current_user_edit', 'common:current_user_locale_profile_details', 'common:current_user_locale_profile_edit', 'common:password_change_view', 'common:setup_list', 'common:tools_list']
)
#menu_main.bind_links(links=[link_setup], position=1)
#menu_main.bind_links(links=[link_tools], position=-3)
menu_setup.bind_links(links=[link_admin_site])
menu_tools.bind_links(links=[link_maintenance_menu])