@register.filter
@stringfilter
def issue_status_icon(status):
 if (status == BaseComment.OPEN):
  return u'rb-icon-issue-open'
 elif (status == BaseComment.RESOLVED):
  return u'rb-icon-issue-resolved'
 elif (status == BaseComment.DROPPED):
  return u'rb-icon-issue-dropped'
 else:
  raise ValueError((u'Unknown comment issue status "%s"' % status))

@ register . filter @ stringfilter def issue_status_icon ( status ) : if ( status == BaseComment . OPEN ) : return u'rb-icon-issue-open' elif ( status == BaseComment . RESOLVED ) : return u'rb-icon-issue-resolved' elif ( status == BaseComment . DROPPED ) : return u'rb-icon-issue-dropped' else : raise ValueError ( ( u'Unknown comment issue status "%s"' % status ) )
return an icon name for the issue status .