@register.filter
@jinja2.contextfilter
def statusflags(context, addon):
 app = context['APP']
 lang = context['LANG']
 if addon.is_unreviewed():
  return 'unreviewed'
 elif addon.is_featured(app, lang):
  return 'featuredaddon'
 else:
  return ''

@ register . filter @ jinja2 . contextfilter def statusflags ( context , addon ) : app = context [ 'APP' ] lang = context [ 'LANG' ] if addon . is_unreviewed ( ) : return 'unreviewed' elif addon . is_featured ( app , lang ) : return 'featuredaddon' else : return ''
unreviewed/featuredaddon status flags for use as css classes .