Common: Small system menu fixes
Add a separator under the setup link in the system menu. Fix the user menu separator which is at the top of the username and should be udner it. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -28,7 +28,8 @@ from .links import (
|
||||
link_about, link_check_version, link_current_user_details,
|
||||
link_current_user_edit, link_current_user_locale_profile_edit,
|
||||
link_license, link_object_error_list_clear, link_packages_licenses,
|
||||
link_setup, link_tools, separator_user_label, text_user_label
|
||||
link_setup, link_tools, separator_system, separator_user_label,
|
||||
text_user_label
|
||||
)
|
||||
from .literals import DELETE_STALE_UPLOADS_INTERVAL, MESSAGE_SQLITE_WARNING
|
||||
from .menus import (
|
||||
@@ -131,7 +132,7 @@ class CommonApp(MayanAppConfig):
|
||||
)
|
||||
menu_user.bind_links(
|
||||
links=(
|
||||
separator_user_label, text_user_label,
|
||||
text_user_label, separator_user_label,
|
||||
link_current_user_details, link_current_user_edit,
|
||||
link_current_user_locale_profile_edit,
|
||||
)
|
||||
@@ -139,8 +140,8 @@ class CommonApp(MayanAppConfig):
|
||||
|
||||
menu_about.bind_links(
|
||||
links=(
|
||||
link_tools, link_setup, link_about, link_license,
|
||||
link_packages_licenses, link_check_version
|
||||
link_tools, link_setup, separator_system, link_about,
|
||||
link_license, link_packages_licenses, link_check_version
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -519,8 +519,6 @@ class SingleObjectListView(PaginationMixin, ViewPermissionCheckMixin, ObjectList
|
||||
TEXT_LIST_AS_ITEMS_PARAMETER, default_mode
|
||||
)
|
||||
|
||||
print '@@ list_mode', list_mode
|
||||
|
||||
context.update(
|
||||
{
|
||||
TEXT_LIST_AS_ITEMS_VARIABLE_NAME: list_mode == TEXT_CHOICE_ITEMS,
|
||||
|
||||
@@ -100,5 +100,6 @@ link_support = Link(
|
||||
link_tools = Link(
|
||||
icon_class=icon_tools, text=_('Tools'), view='common:tools_list'
|
||||
)
|
||||
separator_system = Separator()
|
||||
separator_user_label = Separator()
|
||||
text_user_label = Text(text=get_user_label_text)
|
||||
|
||||
Reference in New Issue
Block a user