def fontawesomize(val):
    """Convert boolean to font awesome icon."""
    if val:
        return '<i class="fa fa-check" style="color: green"></i>'

    return '<i class="fa fa-times" style="color: red"></i>'