{#- The day time log on `/` (design 0028): the day's total, a strip of its spans, totals per project, the marks with delete and a form. Durations come floored to minutes (timelog.hm). -#} {%- set day_iso = log.day.isoformat() %}

{% if is_today %}Today{% else %}{{ log.day.strftime("%a %d %b %Y") }}{% endif %} {{ log.total|hm }}

{% if timelog_error %}{% endif %} {% if not log.segments and not log.marks %}

No time marked on this day.

{% else %} {% if strip %} {#- SVG, not styled boxes: the board's CSP drops inline styles, geometry attributes stay. -#} {%- for it in strip.items %}{% set s = it.segment %} {%- set until = "now" if s.running else (s.end.strftime("%H:%M") if s.end else "") %} {% if s.unclosed %}{{ s.name }} · since {{ s.start.strftime('%H:%M') }} · unclosed, counts 0h00{% else %}{{ s.name }} · {{ s.start.strftime('%H:%M') }}-{{ until }} · {{ s.seconds|hm }}{% endif %} {%- if it.width >= 6 %}{{ s.name }}{% endif %} {%- endfor %} {%- for pos, hour in strip.ticks %} {%- if hour %}{{ hour }}{% endif %} {%- endfor %} {% endif %} {% if log.by_project %} {% endif %} {#- `data-running`: app.js refreshes the panel with the project rows while a span runs. #} {% if log.current %}

now: {{ log.current.name }} since {{ log.current.start.strftime("%H:%M") }}

{% endif %} {% for u in log.unclosed %}

{{ u.name }} since {{ u.start.strftime("%H:%M") }} is unclosed and counts 0h00: add a pause below with the time you stopped{% if not is_today %} (it goes on {{ day_iso }}){% endif %}, or delete the mark.

{% endfor %}
Marks of the day ({{ log.marks|length }})
    {% for m in log.marks %}
  1. {{ m.at|tl_clock }} {{ m.kind }} {% if m.kind == "pause" %}{{ m.label or "" }}{% else %}{{ m.target }}{% endif %}
  2. {% endfor %}
{% endif %}
{% if log.current %}
{% endif %}