forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
27 lines
750 B
HTML
27 lines
750 B
HTML
{% 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>
|
|
|
|
{{ 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 %}
|