{#- ๐ 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 %}๐ 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' %}๐ 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 %}{% set lb = x.last_bout %} โ Details {% if x.unrated %}โญ Rate it{% endif %} ๐ฝ Log {{ x.label }} โ