django jinja else if template tags
{% if condition %}
<!-- Code to be executed if the condition is true -->
{% elif another_condition %}
<!-- Code to be executed if another_condition is true -->
{% else %}
<!-- Code to be executed if none of the above conditions are true -->
{% endif %}