#NEWLINE# @ register . simple_tag #NEWLINE# def identities_menu( user , selection = None ) : #NEWLINE# #INDENT# 'Menu specific to the Identities page.\n\n    :param ``User`` user: the connecter user\n    :rtype: str\n    :return: the rendered menu\n    ' #NEWLINE# entries = [ { #NEWLINE# #INDENT# 'name' : 'identities' , #NEWLINE# 'label' : _ ( 'List identities' ) , #NEWLINE# 'img' : 'fa fa-user' , #NEWLINE# 'class' : 'ajaxnav navigation' , #NEWLINE# 'url' : 'list/' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'quotas' , #NEWLINE# 'label' : _ ( 'List quotas' ) , #NEWLINE# 'img' : 'fa fa-hdd-o' , #NEWLINE# 'class' : 'ajaxnav navigation' , #NEWLINE# 'url' : 'quotas/' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'newaccount' , #NEWLINE# 'label' : _ ( 'Add account' ) , #NEWLINE# 'img' : 'fa fa-plus' , #NEWLINE# 'modal' : True , #NEWLINE# 'modalcb' : 'admin.newaccount_cb' , #NEWLINE# 'url' : reverse ( 'admin:account_add' ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'newalias' , #NEWLINE# 'label' : _ ( 'Add alias' ) , #NEWLINE# 'img' : 'fa fa-plus' , #NEWLINE# 'modal' : True , #NEWLINE# 'modalcb' : 'admin.aliasform_cb' , #NEWLINE# 'url' : reverse ( 'admin:alias_add' ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'newforward' , #NEWLINE# 'label' : _ ( 'Add forward' ) , #NEWLINE# 'img' : 'fa fa-plus' , #NEWLINE# 'modal' : True , #NEWLINE# 'modalcb' : 'admin.aliasform_cb' , #NEWLINE# 'url' : reverse ( 'admin:forward_add' ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'newdlist' , #NEWLINE# 'label' : _ ( 'Add distribution list' ) , #NEWLINE# 'img' : 'fa fa-plus' , #NEWLINE# 'modal' : True , #NEWLINE# 'modalcb' : 'admin.aliasform_cb' , #NEWLINE# 'url' : reverse ( 'admin:dlist_add' ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'import' , #NEWLINE# 'label' : _ ( 'Import' ) , #NEWLINE# 'img' : 'fa fa-folder-open' , #NEWLINE# 'url' : reverse ( 'admin:identity_import' ) , #NEWLINE# 'modal' : True , #NEWLINE# 'modalcb' : 'admin.importform_cb' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'export' , #NEWLINE# 'label' : _ ( 'Export' ) , #NEWLINE# 'img' : 'fa fa-share-alt' , #NEWLINE# 'url' : reverse ( 'admin:identity_export' ) , #NEWLINE# 'modal' : True , #NEWLINE# 'modalcb' : 'admin.exportform_cb' , #NEWLINE# #UNINDENT# } ] #NEWLINE# return render_to_string ( 'common/menulist.html' , { #NEWLINE# #INDENT# 'entries' : entries , #NEWLINE# 'user' : user , #NEWLINE# #UNINDENT# } )