@register.simple_tag
def chevron(value):
    if value > 0:
        return '<span class="fa fa-chevron-up" style="color: #006400;"></span>'
    elif value < 0:
        return '<span class="fa fa-chevron-down" style="color: #8b0000;"> </span>'
    else:
        return ''
Displays a green up chevron if value > 0, and a red down chevron if value < 0
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqwebapp/templatetags/hq_shared_tags.py/chevron