Add book link in the about menu

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-01 21:39:44 -04:00
parent e14685e3e7
commit f650a623b5
4 changed files with 9 additions and 3 deletions

View File

@@ -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)
==================

View File

@@ -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,
)
)

View File

@@ -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(

View File

@@ -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'),