Add ACL list link with icon and use it for the document facet menu.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -35,6 +35,10 @@ link_acl_list = Link(
|
||||
permissions=(permission_acl_view,), text=_('ACLs'), view='acls:acl_list',
|
||||
kwargs=get_kwargs_factory('resolved_object')
|
||||
)
|
||||
link_acl_list_with_icon = Link(
|
||||
icon='fa fa-lock', permissions=(permission_acl_view,), text=_('ACLs'),
|
||||
view='acls:acl_list', kwargs=get_kwargs_factory('resolved_object')
|
||||
)
|
||||
link_acl_create = Link(
|
||||
permissions=(permission_acl_edit,), text=_('New ACL'),
|
||||
view='acls:acl_create', kwargs=get_kwargs_factory('resolved_object')
|
||||
|
||||
@@ -8,7 +8,7 @@ from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from acls import ModelPermission
|
||||
from acls.links import link_acl_list
|
||||
from acls.links import link_acl_list, link_acl_list_with_icon
|
||||
from acls.permissions import permission_acl_edit, permission_acl_view
|
||||
from common import (
|
||||
MayanAppConfig, MissingItem, menu_facet, menu_main, menu_object,
|
||||
@@ -430,7 +430,7 @@ class DocumentsApp(MayanAppConfig):
|
||||
|
||||
# Document facet links
|
||||
menu_facet.bind_links(
|
||||
links=(link_document_duplicates_list, link_acl_list,),
|
||||
links=(link_document_duplicates_list, link_acl_list_with_icon,),
|
||||
sources=(Document,)
|
||||
)
|
||||
menu_facet.bind_links(
|
||||
|
||||
Reference in New Issue
Block a user