{% extends "./page.html" %} {% load i18n humanize aircox %} {% block outer %} {% with diffusion.is_now as is_active %} {% if admin %} {% with object|admin_url:"change" as url %} {{ block.super }} {% endwith %} {% else %} {{ block.super }} {% endif %} {% endwith %} {% endblock %} {% block subtitle %} {% if diffusion %} {% if timetable %} {{ diffusion.start|date:"H:i" }} — {{ diffusion.end|date:"H:i" }} {% else %} {{ diffusion.start|naturalday }}, {{ diffusion.start|date:"H:i" }} {% endif %} {% else %} {{ block.super }} {% endif %} {% endblock %} {% block actions %} {{ block.super }} {% if admin and diffusion %} {% if diffusion.type == diffusion.TYPE_ON_AIR %} {% if diffusion.is_live %} {% else %} {% endif %}   {{ diffusion.get_type_display }} {% elif diffusion.type == diffusion.TYPE_CANCEL %} {{ diffusion.get_type_display }} {% elif diffusion.type == diffusion.TYPE_UNCONFIRMED %} {{ diffusion.get_type_display }} {% endif %} {% endif %} {% if object.sound_set.count %} {% endif %} {% endblock %}