27
aircox/templates/aircox/widgets/logs.html
Normal file
27
aircox/templates/aircox/widgets/logs.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{% comment %}
|
||||||
|
Context:
|
||||||
|
- object_list: list of logs
|
||||||
|
- timetable: defaults to False
|
||||||
|
- widget: defaults to "item"
|
||||||
|
{% endcomment %}
|
||||||
|
{% load aircox %}
|
||||||
|
|
||||||
|
{% with timetable|default:False as timetable %}
|
||||||
|
{% with widget|default:"item" as widget %}
|
||||||
|
{% for object in object_list %}
|
||||||
|
{% if object.episode %}
|
||||||
|
{% page_widget widget object.episode diffusion=object timetable=True %}
|
||||||
|
{% elif object|is_log %}
|
||||||
|
{% include "./track_item.html" with object=object.track log=object timetable=True %}
|
||||||
|
{% else %}
|
||||||
|
<div class="list-item logs">
|
||||||
|
<div class="content">
|
||||||
|
{% for obj in object %}
|
||||||
|
{% include "./track_item.html" with object=obj.track log=obj timetable=True %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endwith %}
|
||||||
|
{% endwith %}
|
Loading…
Reference in New Issue
Block a user