Add links to the documentation, support page, forum and source in
the about menu. Make the about menu a nested menu.
This commit is contained in:
@@ -13,17 +13,19 @@ from django.db.models.signals import post_save
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from mayan.celery import app
|
||||
from navigation.classes import Separator
|
||||
|
||||
from .handlers import (
|
||||
user_locale_profile_session_config, user_locale_profile_create
|
||||
)
|
||||
from .links import (
|
||||
link_about, link_current_user_details, link_current_user_edit,
|
||||
link_current_user_locale_profile_edit, link_filters, link_license,
|
||||
link_packages_licenses, link_setup, link_tools
|
||||
link_about, link_code, link_current_user_details, link_current_user_edit,
|
||||
link_current_user_locale_profile_edit, link_documentation, link_filters,
|
||||
link_forum, link_license, link_packages_licenses, link_setup, link_support,
|
||||
link_tools
|
||||
)
|
||||
from .literals import DELETE_STALE_UPLOADS_INTERVAL
|
||||
from .menus import menu_facet, menu_main, menu_tools, menu_user
|
||||
from .menus import menu_about, menu_facet, menu_main, menu_tools, menu_user
|
||||
from .licenses import * # NOQA
|
||||
from .settings import setting_auto_logging
|
||||
from .tasks import task_delete_stale_uploads # NOQA - Force task registration
|
||||
@@ -106,7 +108,6 @@ class CommonApp(MayanAppConfig):
|
||||
},
|
||||
}
|
||||
)
|
||||
from navigation.classes import Separator
|
||||
menu_user.bind_links(
|
||||
links=(
|
||||
link_current_user_details, link_current_user_edit,
|
||||
@@ -115,14 +116,14 @@ class CommonApp(MayanAppConfig):
|
||||
)
|
||||
)
|
||||
|
||||
menu_facet.bind_links(
|
||||
links=(link_about, link_license, link_packages_licenses),
|
||||
sources=(
|
||||
'common:about_view', 'common:license_view',
|
||||
'common:packages_licenses_view'
|
||||
menu_about.bind_links(
|
||||
links=(
|
||||
link_about, link_support, link_documentation, link_forum,
|
||||
link_code, link_license, link_packages_licenses,
|
||||
)
|
||||
)
|
||||
menu_main.bind_links(links=(link_about,), position=99)
|
||||
|
||||
menu_main.bind_links(links=(menu_about,), position=99)
|
||||
|
||||
menu_tools.bind_links(
|
||||
links=(link_filters,)
|
||||
|
||||
@@ -6,7 +6,7 @@ from navigation import Link
|
||||
|
||||
|
||||
link_about = Link(
|
||||
icon='fa fa-question', text=_('About'), view='common:about_view'
|
||||
icon='fa fa-info', text=_('About this'), view='common:about_view'
|
||||
)
|
||||
link_current_user_details = Link(
|
||||
icon='fa fa-user', text=_('User details'),
|
||||
@@ -23,20 +23,36 @@ link_current_user_locale_profile_edit = Link(
|
||||
icon='fa fa-globe', text=_('Edit locale profile'),
|
||||
view='common:current_user_locale_profile_edit'
|
||||
)
|
||||
link_code = Link(
|
||||
icon='fa fa-code-fork', tags='new_window', text=_('Source code'),
|
||||
url='https://gitlab.com/mayan-edms/mayan-edms'
|
||||
)
|
||||
link_documentation = Link(
|
||||
icon='fa fa-book', tags='new_window', text=_('Documentation'),
|
||||
url='https://mayan.readthedocs.io/en/stable/'
|
||||
)
|
||||
link_filters = Link(
|
||||
icon='fa fa-filter', text=_('Data filters'),
|
||||
view='common:filter_selection'
|
||||
)
|
||||
link_forum = Link(
|
||||
icon='fa fa-life-ring', tags='new_window', text=_('Forum'),
|
||||
url='https://groups.google.com/forum/#!forum/mayan-edms'
|
||||
)
|
||||
link_license = Link(
|
||||
icon='fa fa-book', text=_('License'), view='common:license_view'
|
||||
icon='fa fa-certificate', text=_('License'), view='common:license_view'
|
||||
)
|
||||
link_packages_licenses = Link(
|
||||
icon='fa fa-book', text=_('Other packages licenses'),
|
||||
icon='fa fa-certificate', text=_('Other packages licenses'),
|
||||
view='common:packages_licenses_view'
|
||||
)
|
||||
link_setup = Link(
|
||||
icon='fa fa-gear', text=_('Setup'), view='common:setup_list'
|
||||
)
|
||||
link_support = Link(
|
||||
icon='fa fa-phone', tags='new_window', text=_('Support'),
|
||||
url='http://www.mayan-edms.com/providers/'
|
||||
)
|
||||
link_tools = Link(
|
||||
icon='fa fa-wrench', text=_('Tools'), view='common:tools_list'
|
||||
)
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from navigation import Menu
|
||||
|
||||
__all__ = (
|
||||
'menu_facet', 'menu_object', 'menu_main', 'menu_multi_item',
|
||||
'menu_about', 'menu_facet', 'menu_object', 'menu_main', 'menu_multi_item',
|
||||
'menu_secondary', 'menu_setup', 'menu_sidebar', 'menu_tools', 'menu_user'
|
||||
)
|
||||
|
||||
menu_about = Menu(icon='fa fa-info', label=_('About'), name='about menu')
|
||||
menu_facet = Menu(name='object facet')
|
||||
menu_object = Menu(name='object menu')
|
||||
menu_main = Menu(name='main menu')
|
||||
|
||||
Reference in New Issue
Block a user