{% comment %}
Render list of logs (as widget).

Context:
- object_list: list of logs to display
- is_thin: if True, hide some information in order to fit in a thin container
{% endcomment %}
{% load aircox %}

{% with True as hide_schedule %}
<table class="table is-striped is-hoverable is-fullwidth" role="list">
    {% for object in object_list %}
    <tr {% if object|is_diffusion and object.is_now %}class="is-selected"{% endif %}>
        <td>
            {% if object|is_diffusion %}
            <time datetime="{{ object.start }}" title="{{ object.start }}">
                {{ object.start|date:"H:i" }}
                {% if not is_thin %} - {{ object.end|date:"H:i" }}{% endif %}
            </time>
            {% else %}
            <time datetime="{{ object.date }}" title="{{ object.date }}">
                {{ object.date|date:"H:i" }}
            </time>
            {% endif %}
        </td>
        <td>{% include "aircox/widgets/log_item.html" %}</td>
    </tr>
    {% endfor %}
</table>
{% endwith %}
