Update the common, django_gpg, document_comments, document_indexing, document_parsing, document_signatures, document_states, event, linking, mailer, permissions, rest_api, smart_settings, sources and task manager apps to use the new Icon class.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -4,4 +4,34 @@ from appearance.classes import Icon
|
||||
|
||||
icon_about = Icon(driver_name='fontawesome', symbol='info')
|
||||
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(
|
||||
driver_name='fontawesome', symbol='globe'
|
||||
)
|
||||
icon_current_user_locale_profile_edit = Icon(
|
||||
driver_name='fontawesome', symbol='globe'
|
||||
)
|
||||
icon_documentation = Icon(driver_name='fontawesome', symbol='book')
|
||||
icon_forum = Icon(
|
||||
driver_name='fontawesome', symbol='life-ring'
|
||||
)
|
||||
icon_license = Icon(
|
||||
driver_name='fontawesome', symbol='certificate'
|
||||
)
|
||||
icon_object_error_list_with_icon = Icon(
|
||||
driver_name='fontawesome', symbol='lock'
|
||||
)
|
||||
icon_packages_licenses = Icon(
|
||||
driver_name='fontawesome', symbol='certificate'
|
||||
)
|
||||
icon_setup = Icon(
|
||||
driver_name='fontawesome', symbol='cog'
|
||||
)
|
||||
icon_support = Icon(
|
||||
driver_name='fontawesome', symbol='phone'
|
||||
)
|
||||
icon_tools = Icon(
|
||||
driver_name='fontawesome', symbol='wrench'
|
||||
)
|
||||
|
||||
@@ -6,7 +6,11 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from navigation import Link
|
||||
|
||||
from .icons import (
|
||||
icon_about, icon_check_version, icon_current_user_details
|
||||
icon_about, icon_check_version, icon_code, 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
|
||||
)
|
||||
from .permissions_runtime import permission_error_log_view
|
||||
|
||||
@@ -41,23 +45,26 @@ link_current_user_details = Link(
|
||||
view='common:current_user_details'
|
||||
)
|
||||
link_current_user_edit = Link(
|
||||
icon='fa fa-user', text=_('Edit details'), view='common:current_user_edit'
|
||||
icon_class=icon_current_user_edit, text=_('Edit details'),
|
||||
view='common:current_user_edit'
|
||||
)
|
||||
link_current_user_locale_profile_details = Link(
|
||||
icon='fa fa-globe', text=_('Locale profile'),
|
||||
icon_class=icon_current_user_locale_profile_details,
|
||||
text=_('Locale profile'),
|
||||
view='common:current_user_locale_profile_details'
|
||||
)
|
||||
link_current_user_locale_profile_edit = Link(
|
||||
icon='fa fa-globe', text=_('Edit locale profile'),
|
||||
icon_class=icon_current_user_locale_profile_edit,
|
||||
text=_('Edit locale profile'),
|
||||
view='common:current_user_locale_profile_edit'
|
||||
)
|
||||
link_code = Link(
|
||||
icon='fa fa-code-branch', tags='new_window', text=_('Source code'),
|
||||
icon_class=icon_code, 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/'
|
||||
icon_class=icon_documentation, tags='new_window',
|
||||
text=_('Documentation'), url='https://mayan.readthedocs.io/en/stable/'
|
||||
)
|
||||
link_object_error_list = Link(
|
||||
kwargs=get_kwargs_factory('resolved_object'),
|
||||
@@ -70,28 +77,29 @@ link_object_error_list_clear = Link(
|
||||
view='common:object_error_list_clear',
|
||||
)
|
||||
link_object_error_list_with_icon = Link(
|
||||
kwargs=get_kwargs_factory('resolved_object'), icon='fa fa-lock',
|
||||
kwargs=get_kwargs_factory('resolved_object'),
|
||||
icon_class=icon_object_error_list_with_icon,
|
||||
permissions=(permission_error_log_view,), text=_('Errors'),
|
||||
view='common:error_list',
|
||||
)
|
||||
link_forum = Link(
|
||||
icon='fa fa-life-ring', tags='new_window', text=_('Forum'),
|
||||
icon_class=icon_forum, tags='new_window', text=_('Forum'),
|
||||
url='https://groups.google.com/forum/#!forum/mayan-edms'
|
||||
)
|
||||
link_license = Link(
|
||||
icon='fa fa-certificate', text=_('License'), view='common:license_view'
|
||||
icon_class=icon_license, text=_('License'), view='common:license_view'
|
||||
)
|
||||
link_packages_licenses = Link(
|
||||
icon='fa fa-certificate', text=_('Other packages licenses'),
|
||||
icon_class=icon_packages_licenses, text=_('Other packages licenses'),
|
||||
view='common:packages_licenses_view'
|
||||
)
|
||||
link_setup = Link(
|
||||
icon='fa fa-cog', text=_('Setup'), view='common:setup_list'
|
||||
icon_class=icon_setup, text=_('Setup'), view='common:setup_list'
|
||||
)
|
||||
link_support = Link(
|
||||
icon='fa fa-phone', tags='new_window', text=_('Support'),
|
||||
icon_class=icon_support, 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'
|
||||
icon_class=icon_tools, text=_('Tools'), view='common:tools_list'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user