{{ target.name }}
{% if d.holiday %} · {{ d.holiday }}{% endif %}
{% if d.planned_minutes %} · {% t "Planned" %} {{ d.planned_minutes|hm }}{% endif %}
{% include "attendance/partials/readonly_note.html" %}
{% if error %}
{{ error }}
{% endif %}
{% if message %}
{{ message }}
{% endif %}
{% include "attendance/partials/calendar_notice.html" %}
{% if d.issues %}
{% for i in d.issues %}{{ i.value|tr }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}
{% t "Worked" %} {{ d.worked_minutes|hm }}
{% t "Justified" %} {{ d.justified_minutes|hm }}
{% if d.is_extra_day %}
{% t "Extra day" %} {{ d.extra_minutes|hm }}
{% endif %}
{% if bar %}
{% for s in bar.segments %}{% endfor %}
{% for t in bar.ticks %}{% endfor %}
{% for h in bar.hours %}{{ h.label }}{% endfor %}
{% endif %}
{% t "Day" %}
{% for e in timeline %}
{% if e.check %}{% with c=e.check %}
{{ c.time|date:"H:i" }}{% if c.kind == 0 %}{% t "Check-in" %}{% else %}{% t "Check-out" %}{% endif %}
{% if settings.highlight_virtual_checks and c.virtual %}{% t "Virtual" %}{% endif %}
{% if can_edit %}{% endif %}
{% endwith %}{% else %}{% with lv=e.leave c=classes|get_item:e.leave.class_id %}
{{ lv.begin|date:"H:i" }}–{{ lv.end|date:"H:i" }}{{ c.name|default:lv.class_id }}
{% if lv.reason and lv.reason != c.name %}{{ lv.reason }}{% endif %}
{% if can_edit %}{% endif %}