{# Health ▸ Overview: the cycle tile (views.summary as s) — the inside of a tile. #}
{% macro dm(d) %}{{ d.strftime("%a") }} {{ d.day }} {{ d.strftime("%b") }}{% endmacro %}
{% set st, fw = s.status, s.fertile %}
Cycle
{% if s.empty %}—nothing logged
{% elif st.kind == "period" %}Period · day {{ st.day }}cycle day {{ st.cycle_day }}
{% elif st.kind == "late" %}{{ st.days }} day{{ "s" if st.days != 1 }} latecycle day {{ st.cycle_day }}
{% else %}Day {{ st.cycle_day }}period {% if st.days == 0 %}expected today{% else %}in {{ st.days }} day{{ "s" if st.days != 1 }} · {{ dm(st.next) }}{% endif %}{% endif %}
{% if not s.empty and s.show_fertile and fw and fw.now %}fertile window{% if fw.ovul_today %} · ovulation around today{% endif %}{% endif %}