{# Health ▸ Overview: the cycle card (views.summary, s = the summary). Health's card look; its own small ring styles inline here (cycle.css isn't on Health's pages). #} {% macro dm(d) %}{{ d.strftime("%a") }} {{ d.day }} {{ d.strftime("%b") }}{% endmacro %} {% macro span(a, z) %}{% if a.month == z.month %}{{ a.day }}–{{ z.day }} {{ z.strftime("%b") }}{% else %}{{ a.day }} {{ a.strftime("%b") }} – {{ z.day }} {{ z.strftime("%b") }}{% endif %}{% endmacro %} {% set st, fw = s.status, s.fertile %}

{% if s.show_fertile and not s.empty %}CycleUsual cycle {{ s.stats.cycle }} days, period {{ s.stats.period }}. Fertile days are a textbook estimate (ovulation 14 days before a period) — not contraception.{% else %}Cycle{% endif %}

Calendar ›
{% if s.empty %}

No periods logged yet — log one.

{% else %}
{% if st.kind == "period" %}periodDay {{ st.day }} {% elif st.kind == "late" %}period{{ st.days }} day{{ "s" if st.days != 1 }} late {% elif st.days == 0 %}periodTodayexpected {% else %}period in{{ st.days }} day{{ "s" if st.days != 1 }}{% endif %}
Cycle day
{{ st.cycle_day }}{% if st.kind == "period" %} · period, day {{ st.day }}{% endif %}
Next period
{% if st.kind == "late" %}{{ st.days }} day{{ "s" if st.days != 1 }} late (expected {{ dm(st.expected) }}){% elif s.preds %}{{ dm(s.preds[0][0]) }}{% if st.kind != "period" and st.days %} · in {{ st.days }} day{{ "s" if st.days != 1 }}{% endif %}{% endif %}
{% if s.show_fertile and fw %}
Fertile
{% if fw.now %}now · until {{ dm(fw.end) }}{% else %}{{ span(fw.start, fw.end) }}{% endif %}
Ovulation
{% if fw.ovul_today %}around today{% else %}around {{ dm(fw.ovul) }}{% endif %}
Pregnancy
{% if fw.now %}possible — fertile window{% else %}less likely — outside the fertile window{% endif %}
{% endif %}
{% endif %}