From d53cb3e935a8c0638f1aaf9a4243a0610d37d66e Mon Sep 17 00:00:00 2001 From: bkfox Date: Fri, 26 Jan 2024 21:56:56 +0100 Subject: [PATCH] missing file --- aircox/templates/aircox/widgets/logs.html | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 aircox/templates/aircox/widgets/logs.html diff --git a/aircox/templates/aircox/widgets/logs.html b/aircox/templates/aircox/widgets/logs.html new file mode 100644 index 0000000..adaf4ff --- /dev/null +++ b/aircox/templates/aircox/widgets/logs.html @@ -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 %} +
+
+ {% for obj in object %} + {% include "./track_item.html" with object=obj.track log=obj timetable=True %} + {% endfor %} +
+
+ {% endif %} + {% endfor %} +{% endwith %} +{% endwith %}