{% if states == 'COMPLETED' or states == 'RUNNING' %} {{ states }} {% elif states == 'FIZZLED' %} {{ states }} {% elif states == 'DEFUSED' or states == 'WAITING' %} {{ states }} {% else %} {{ states }} {% endif %}