{#- ๐Ÿ‘ Hole training (#92): the two buttons โ€” โœ… done, โž• details โ€” and plug in / plug out. The daily habit is an ordinary habit (modules/hole/service.py); this card only makes it one tap. -#} {% set x = c.ctx %} {% set w = x.word %} {% set m = x.metrics %}

{{ x.label }} {%- if m and m.streak and m.streak.current %} ยท ๐Ÿ”ฅ{{ m.streak.current }}{{ m.streak.unit }}{% endif -%} {%- if m and m.week %} ยท {{ m.week.n }}/{{ m.week.target }} this week{% endif -%}

{% if x.strip %} {#- the last two weeks at a glance, and this week against its target: /hole#progress has the rest -#} {%- for d in x.strip %}{% endfor -%} {% if x.week and x.week.wear.want_h %}{% set pc = [100, (100 * x.week.wear.done_h / x.week.wear.want_h)|round|int]|min %}
{{ x.week.wear.done_h }} / {{ x.week.wear.want_h }} h plugged this week{% if x.week.ladder.want %} ยท {{ x.week.ladder.done }}/{{ x.week.ladder.want }} ladder{% endif %}
{% endif %} {% endif %} {% if x.recovery %}

๐Ÿ›Œ Recovery until {{ x.recovery.until.strftime('%a %d %b') }}. Rest. No size steps, nothing owed โ€” your streak waits for you.

{% endif %} {% if x.clinician %}

{{ x.clinician_line }}

{% endif %} {% set t = x.pick %} {% if t and t.status == 'proposed' %}
๐Ÿ“‹ {{ t.words }}
{% elif t and t.status == 'ordered' and not x.done_today %}

๐Ÿ“‹ Today's order: {{ t.words }}

{% endif %} {% if x.done_today %}

โœ… Today is a {{ w }} training day ({% for l in x.today %}{{ {'kit': 'from a bout', 'ical': 'from your calendar', 'manual': 'ticked', 'api': 'from a Shortcut', 'shortcut': 'from a Shortcut'}.get(l.source, l.source or 'logged') }}{{ ', ' if not loop.last }}{% endfor %})

{% else %}
{% endif %} {% if x.plugged %} {% for b in x.plugged %}
๐Ÿ‘ {{ b.things|map(attribute='name')|join(' ยท ') }} in for {{ (now - b.started_at)|dur }}
{% endfor %} {% elif x.wearables %}
{% if x.wearables|length > 1 %} {% else %}{% endif %}
{% endif %}

{% set lb = x.last_bout %} โž• Details {% if x.unrated %}โญ Rate it{% endif %} ๐Ÿšฝ Log {{ x.label }} โ†’