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:
Roberto Rosario
2018-06-28 23:19:49 -04:00
parent 40d8c7049c
commit aa4e8e3507
30 changed files with 397 additions and 174 deletions

View File

@@ -0,0 +1,7 @@
from __future__ import absolute_import, unicode_literals
from appearance.classes import Icon
icon_api = Icon(driver_name='fontawesome', symbol='plug')
icon_api_documentation = Icon(driver_name='fontawesome', symbol='book')
icon_api_documentation_redoc = Icon(driver_name='fontawesome', symbol='book')

View File

@@ -4,16 +4,21 @@ from django.utils.translation import ugettext_lazy as _
from navigation import Link
from .icons import (
icon_api, icon_api_documentation, icon_api_documentation_redoc
)
link_api = Link(
icon='fa fa-plug', tags='new_window', text=_('REST API'),
icon_class=icon_api, tags='new_window', text=_('REST API'),
view='rest_api:api_root'
)
link_api_documentation = Link(
icon='fa fa-book', tags='new_window', text=_('API Documentation (Swagger)'),
view='schema-swagger-ui'
icon_class=icon_api_documentation, tags='new_window',
text=_('API Documentation (Swagger)'), view='schema-swagger-ui'
)
link_api_documentation_redoc = Link(
icon='fa fa-book', tags='new_window', text=_('API Documentation (ReDoc)'),
view='schema-redoc'
icon_class=icon_api_documentation_redoc, tags='new_window',
text=_('API Documentation (ReDoc)'), view='schema-redoc'
)