{% if loaded %} {# Which day: today, tomorrow or another day of the week ahead. #}
{{ label }}
{% endif %} {% if not connected %}

Connect Google to see today's schedule. Integrations

{% elif not loaded %}

The calendar could not be loaded. Check the connection

{% elif not day.today %}

Nothing on the calendar {{ "today" if offset == 0 else ("tomorrow" if offset == 1 else "this day") }}.

{% else %}
{% for event in day.today %} {% if event.kind == "now" %}
{{ event.time | localtime("%H:%M") }}
{% elif event.kind == "travel" %} {# The way to the event after it (Commute): when to leave and how long it takes. #}
{{ event.start | localtime("%H:%M") }}Leave for {{ event.event.title }}{{ event.length }} {{ event.by }} from {{ event.origin }}
{% elif event.kind == "lunch" %} {# Lunch, out of the focus blocks: time kept free, or the user's own lunch event. #} {% set tag = "a" if event.url else "div" %} <{{ tag }} class="ti lunch{% if event.over %} past{% endif %}"{% if event.url %} href="{{ event.url }}" target="_blank" rel="noopener"{% endif %}>{{ event.start | localtime("%H:%M") }}{{ event.title or "Lunch" }}Until {{ event.end | localtime("%H:%M") }} · {{ event.length }} {% elif event.kind == "focus" %} {# A free block of an hour or more between events, for deep work. #}
{{ event.start | localtime("%H:%M") }}Free for focusUntil {{ event.end | localtime("%H:%M") }} · {{ event.length }}
{% else %} {# All-day events come first; the label is shown only on the first of them. #} {% if not event.all_day %}{{ event.start | localtime("%H:%M") }}{% elif loop.first %}All day{% endif %} {{ event.title }}{% if event.sub %}{{ event.sub }}{% endif %} {% endif %} {% endfor %}
{% endif %}