@register.function
@jinja2.contextfunction
def logs_tabnav(context):
 request = context['request']
 if acl.action_allowed(request, 'Apps', 'Review'):
  rv = [('reviewers.apps.logs', 'logs', _('Reviews'))]
 else:
  rv = []
 if acl.action_allowed(request, 'Apps', 'ModerateReview'):
  rv.append(('reviewers.apps.moderatelog', 'moderatelog', _('Moderated Reviews')))
 return rv

@ register . function @ jinja2 . contextfunction def logs_tabnav ( context ) : request = context [ 'request' ] if acl . action_allowed ( request , 'Apps' , 'Review' ) : rv = [ ( 'reviewers.apps.logs' , 'logs' , _ ( 'Reviews' ) ) ] else : rv = [ ] if acl . action_allowed ( request , 'Apps' , 'ModerateReview' ) : rv . append ( ( 'reviewers.apps.moderatelog' , 'moderatelog' , _ ( 'Moderated Reviews' ) ) ) return rv
returns tuple of tab navigation for the log pages .