{% load i18n aircox %}
{% comment %}
List item for a log, either for a logged track or diffusion (as diffusion).

Context objects:
- object: object to render
- hide_schedule: if true, hide the schedule

In case of modification, you might want to check on `assets/vue/player.vue`
for design review.
{% endcomment %}

{% block outer %}
{% if object|is_diffusion %}
    {% page_widget widget object.episode diffusion=object timetable=timetable|default:False %}
{% elif object|is_log %}
    {% include "./track_item.html" with object=object.track log=object timetable=timetable|default:False %}
{% else %}
    {% for obj in object %}
    {% include "./track_item.html" with object=obj.track log=obj timetable=timetable|default:False %}
    {% endfor %}
{% endif %}
{% endblock %}
