{% if result.status == 'failed' %}
    <label class="label label-danger">Failed</label>
{% elif result.status == 'errored' %}
    <label class="label label-danger">Errored</label>
{% elif result.status == 'pending' %}
    <label class="label label-default">Pending</label>
{% elif result.status == 'running' %}
    <label class="label label-warning">Running</label>
{% elif result.status == 'completed' %}
    <label class="label label-success">Completed</label>
{% else %}
    <label class="label label-default">N/A</label>
{% endif %}
