{# One day's timeline, positioned in % of its box (see webview._timeline_blocks). lines / labels / bands / blocks / now come from webview; `labels` is only passed where the hour numbers belong (day view, first week column). #} {% macro timeline(lines, bands, blocks, now, labels=None, band_labels=True, tick=True, dot_at_edge=False, day=None) %}
{% for b in bands %}
{% if band_labels %}{{ b.label }}{% endif %}
{% endfor %} {% for y in lines %}
{% endfor %} {% if labels %}{% for l in labels %}
{{ l.text }}
{% endfor %}{% endif %} {% for e in blocks %}
{% if e.font %}
{{ e.time }} {% if e.icon %}{{ e.icon }} {% endif %}{{ e.title }}
{% endif %}
{% endfor %} {% if 0 <= now <= 100 %}
{% endif %}
{% endmacro %}