diff --git a/HISTORY.rst b/HISTORY.rst index 4c0c007e44..b75a6a3ef4 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -40,6 +40,7 @@ Thanks to Patrick Hütter (@PatrickHuetter) for the report. - Rename all instances of the IMAP server from mailbox to server for clarity. +- Add book link in the about menu. 3.2.8 (2019-10-01) ================== diff --git a/mayan/apps/common/apps.py b/mayan/apps/common/apps.py index 81494da8ff..fffbd109f3 100644 --- a/mayan/apps/common/apps.py +++ b/mayan/apps/common/apps.py @@ -22,7 +22,7 @@ from .handlers import ( handler_user_locale_profile_session_config, handler_user_locale_profile_create ) from .links import ( - link_about, link_current_user_locale_profile_edit, link_license, + link_about, link_book, link_current_user_locale_profile_edit, link_license, link_object_error_list_clear, link_setup, link_tools ) @@ -108,7 +108,7 @@ class CommonApp(MayanAppConfig): menu_about.bind_links( links=( - link_tools, link_setup, link_about, link_license, + link_tools, link_setup, link_about, link_book, link_license, ) ) diff --git a/mayan/apps/common/icons.py b/mayan/apps/common/icons.py index fc72d63d70..9fd1271e7b 100644 --- a/mayan/apps/common/icons.py +++ b/mayan/apps/common/icons.py @@ -11,6 +11,7 @@ icon_add_all = Icon( ) icon_assign_remove_add = Icon(driver_name='fontawesome', symbol='plus') icon_assign_remove_remove = Icon(driver_name='fontawesome', symbol='minus') +icon_book = Icon(driver_name='fontawesome', symbol='book') icon_confirm_form_submit = Icon(driver_name='fontawesome', symbol='check') icon_confirm_form_cancel = Icon(driver_name='fontawesome', symbol='times') icon_current_user_locale_profile_details = Icon( diff --git a/mayan/apps/common/links.py b/mayan/apps/common/links.py index 25a74bf903..1a769fd5b1 100644 --- a/mayan/apps/common/links.py +++ b/mayan/apps/common/links.py @@ -6,7 +6,7 @@ from django.utils.translation import ugettext_lazy as _ from mayan.apps.navigation.classes import Link from .icons import ( - icon_about, icon_current_user_locale_profile_details, + icon_about, icon_book, icon_current_user_locale_profile_details, icon_current_user_locale_profile_edit, icon_documentation, icon_forum, icon_license, icon_object_error_list_with_icon, icon_setup, icon_source_code, icon_support, icon_tools @@ -35,6 +35,10 @@ def get_kwargs_factory(variable_name): link_about = Link( icon_class=icon_about, text=_('About this'), view='common:about_view' ) +link_book = Link( + icon_class=icon_book, tags='new_window', text=_('Get the book'), + url='https://mayan-edms.com/book/' +) link_current_user_locale_profile_details = Link( icon_class=icon_current_user_locale_profile_details, text=_('Locale profile'),