Move information links from menu to the about view. Add template tag to import icons from the templates.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-17 18:13:15 -04:00
parent c2bb697306
commit f2fff77aab
5 changed files with 67 additions and 19 deletions
+5 -6
View File
@@ -23,11 +23,11 @@ from .handlers import (
user_locale_profile_session_config, user_locale_profile_create
)
from .links import (
link_about, link_check_version, link_code, link_current_user_details,
link_about, link_check_version, link_current_user_details,
link_current_user_edit, link_current_user_locale_profile_edit,
link_documentation, link_forum, link_license, link_object_error_list_clear,
link_packages_licenses, link_setup, link_support, link_tools,
separator_user_label, text_user_label
link_license, link_object_error_list_clear, link_packages_licenses,
link_setup, link_support, link_tools, separator_user_label,
text_user_label
)
from .literals import DELETE_STALE_UPLOADS_INTERVAL, MESSAGE_SQLITE_WARNING
@@ -135,8 +135,7 @@ class CommonApp(MayanAppConfig):
menu_about.bind_links(
links=(
link_tools, link_setup, link_about, link_support,
link_documentation, link_forum, link_code, link_license,
link_tools, link_setup, link_about, link_license,
link_packages_licenses, link_check_version
)
)
+14 -1
View File
@@ -6,7 +6,6 @@ icon_about = Icon(driver_name='fontawesome', symbol='info')
icon_assign_remove_add = Icon(driver_name='fontawesome', symbol='plus')
icon_assign_remove_remove = Icon(driver_name='fontawesome', symbol='minus')
icon_check_version = Icon(driver_name='fontawesome', symbol='sync')
icon_code = Icon(driver_name='fontawesome', symbol='code-branch')
icon_current_user_details = Icon(driver_name='fontawesome', symbol='user')
icon_current_user_edit = Icon(driver_name='fontawesome', symbol='user')
icon_current_user_locale_profile_details = Icon(
@@ -43,9 +42,23 @@ icon_packages_licenses = Icon(
icon_setup = Icon(
driver_name='fontawesome', symbol='cog'
)
icon_social_facebook = Icon(
driver_name='fontawesomecss', css_classes='fab fa-facebook'
)
icon_social_instagram = Icon(
driver_name='fontawesomecss', css_classes='fab fa-instagram'
)
icon_social_paypal = Icon(
driver_name='fontawesomecss', css_classes='fab fa-paypal'
)
icon_social_twitter = Icon(
driver_name='fontawesomecss', css_classes='fab fa-twitter'
)
icon_source_code = Icon(driver_name='fontawesome', symbol='code-branch')
icon_support = Icon(
driver_name='fontawesome', symbol='phone'
)
icon_tools = Icon(
driver_name='fontawesome', symbol='wrench'
)
icon_wiki = Icon(driver_name='fontawesome', symbol='book')
+7 -6
View File
@@ -7,11 +7,12 @@ from navigation import Link
from navigation.classes import Separator, Text
from .icons import (
icon_about, icon_check_version, icon_code, icon_current_user_details,
icon_about, icon_check_version, icon_current_user_details,
icon_current_user_edit, 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_packages_licenses, icon_setup, icon_support, icon_tools
icon_packages_licenses, icon_setup, icon_source_code, icon_support,
icon_tools
)
from .permissions_runtime import permission_error_log_view
from .utils import get_user_label_text
@@ -60,10 +61,6 @@ link_current_user_locale_profile_edit = Link(
text=_('Edit locale profile'),
view='common:current_user_locale_profile_edit'
)
link_code = Link(
icon_class=icon_code, tags='new_window', text=_('Source code'),
url='https://gitlab.com/mayan-edms/mayan-edms'
)
link_documentation = Link(
icon_class=icon_documentation, tags='new_window',
text=_('Documentation'), url='https://mayan.readthedocs.io/en/stable/'
@@ -98,6 +95,10 @@ link_packages_licenses = Link(
link_setup = Link(
icon_class=icon_setup, text=_('Setup'), view='common:setup_list'
)
link_source_code = Link(
icon_class=icon_source_code, tags='new_window', text=_('Source code'),
url='https://gitlab.com/mayan-edms/mayan-edms'
)
link_support = Link(
icon_class=icon_support, tags='new_window', text=_('Support'),
url='http://www.mayan-edms.com/providers/'