@register.simple_tag
def build_icon(build):
    if build.is_success:
        return 'done'
    elif build.is_pending:
        return 'alarm'

    return 'clear'
Return the build icon name.
dataset/ETHPy150Open m-vdb/github-buildservice-boilerplate/buildservice/templatetags/utils.py/build_icon