{% if result.failed %}
    <label class="label label-danger">Failed</label>
{% elif result %}
    <label class="label label-success">Passed</label>
{% else %}
    <label class="label label-default">N/A</label>
{% endif %}
