{% if entries %}
{% load tz %}
{% for item in entries %}
{% with e=item.entry %}
{# Date header — show when date changes #}
{% ifchanged e.timestamp|date:"Y-m-d" %}
{{ e.timestamp|date:"Y-m-d, l" }}
{% endifchanged %}
{# DAG column #}
{# Vertical rail lines — colored per rail #}
{% for line in item.lines %}
{% endfor %}
{# Horizontal connectors — fork (branch-out) and merge (branch-in) #}
{% for conn in item.connectors %}
{% endfor %}
{# Node — style varies: merge diamond, leaf open circle, normal filled circle #}
{% if e.event_type == 'ci' %}
{% elif e.event_type == 'w' %}
{% elif e.event_type == 't' %}
{% elif e.event_type == 'f' %}
{% else %}
{% endif %}