@register.function
@jinja2.contextfunction
def queue_tabnav_themes(context):
 tabs = []
 if acl.action_allowed(context['request'], 'Personas', 'Review'):
  tabs.append(('editors.themes.list', 'pending_themes', _('Pending')))
 if acl.action_allowed(context['request'], 'SeniorPersonasTools', 'View'):
  tabs.append(('editors.themes.list_flagged', 'flagged_themes', _('Flagged')))
  tabs.append(('editors.themes.list_rereview', 'rereview_themes', _('Updates')))
 return tabs

@ register . function @ jinja2 . contextfunction def queue_tabnav_themes ( context ) : tabs = [ ] if acl . action_allowed ( context [ 'request' ] , 'Personas' , 'Review' ) : tabs . append ( ( 'editors.themes.list' , 'pending_themes' , _ ( 'Pending' ) ) ) if acl . action_allowed ( context [ 'request' ] , 'SeniorPersonasTools' , 'View' ) : tabs . append ( ( 'editors.themes.list_flagged' , 'flagged_themes' , _ ( 'Flagged' ) ) ) tabs . append ( ( 'editors.themes.list_rereview' , 'rereview_themes' , _ ( 'Updates' ) ) ) return tabs
similar to queue_tabnav .