{% comment %}
Context:
- object: diffusion
{% endcomment %}
{% load i18n %}
{% if object.type == object.TYPE_ON_AIR %}
<span class="tag is-info">
    <span class="icon is-small">
        {% if object.is_live %}
        <i class="fa fa-microphone"
            title="{% translate "Live diffusion" %}"></i>
        {% else %}
        <i class="fa fa-music"
            title="{% translate "Differed diffusion" %}"></i>
        {% endif %}
    </span>
    &nbsp;
    {{ object.get_type_display }}
</span>
{% elif object.type == object.TYPE_CANCEL %}
<span class="tag is-danger">
    {{ object.get_type_display }}</span>
{% elif object.type == object.TYPE_UNCONFIRMED %}
<span class="tag is-warning">
    {{ object.get_type_display }}</span>
{% endif %}
