@register.function
@jinja2.contextfunction
def reviewers_breadcrumbs(context, queue=None, items=None):
 crumbs = [(reverse('reviewers.home'), _('Reviewer Tools'))]
 if queue:
  queues = {'pending': _('Apps'), 'rereview': _('Re-reviews'), 'updates': _('Updates'), 'escalated': _('Escalations'), 'device': _('Device'), 'moderated': _('Moderated Reviews'), 'abuse': _('Abuse Reports'), 'abusewebsites': _('Website Abuse Reports'), 'reviewing': _('Reviewing'), 'homescreen': _('Homescreens'), 'region': _('Regional Queues')}
  if items:
   url = reverse(('reviewers.apps.queue_%s' % queue))
  else:
   url = None
  crumbs.append((url, queues[queue]))
 if items:
  crumbs.extend(items)
 return mkt_breadcrumbs(context, items=crumbs, add_default=True)

@ register . function @ jinja2 . contextfunction def reviewers_breadcrumbs ( context , queue = None , items = None ) : crumbs = [ ( reverse ( 'reviewers.home' ) , _ ( 'Reviewer Tools' ) ) ] if queue : queues = { 'pending' : _ ( 'Apps' ) , 'rereview' : _ ( 'Re-reviews' ) , 'updates' : _ ( 'Updates' ) , 'escalated' : _ ( 'Escalations' ) , 'device' : _ ( 'Device' ) , 'moderated' : _ ( 'Moderated Reviews' ) , 'abuse' : _ ( 'Abuse Reports' ) , 'abusewebsites' : _ ( 'Website Abuse Reports' ) , 'reviewing' : _ ( 'Reviewing' ) , 'homescreen' : _ ( 'Homescreens' ) , 'region' : _ ( 'Regional Queues' ) } if items : url = reverse ( ( 'reviewers.apps.queue_%s' % queue ) ) else : url = None crumbs . append ( ( url , queues [ queue ] ) ) if items : crumbs . extend ( items ) return mkt_breadcrumbs ( context , items = crumbs , add_default = True )
wrapper function for breadcrumbs .