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>
24 lines
776 B
HTML
24 lines
776 B
HTML
{% 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 %}
|