{% extends "base.html" %} {% import "cycle/_head.html" as cy with context %} {% block title %}Cycle{% endblock %} {% block head %}{{ cy.assets() }}{% endblock %} {% block main_attrs %} data-norefresh{% endblock %} {# Status ring + one button (today on / off), the month — click a past day to mark it a period day (a droplet; hover shows its flow picker), its ✎ (top right) opens the day's log (period + flow, pain, symptoms, mood, sex, note). History: history.html. cycle.js: the buttons; after a change it swaps in .cy from a fresh copy of the page. #} {% set st = v.status %} {% set DROP = "M12 5.6L18.72 12.28A9.5 9.5 0 1 1 5.28 12.28Z" %} {% set FLOWS = ["very light", "light", "medium", "heavy", "very heavy"] %} {% macro drop(cls="") %}{% endmacro %} {% macro flows(cur=None) %}{% for f in FLOWS %}{% endfor %}{% endmacro %} {% macro dm(d) %}{{ d.day }} {{ d.strftime("%b") }}{% endmacro %} {% macro wdm(d) %}{{ d.strftime("%a") }} {{ d.day }} {{ d.strftime("%b") }}{% endmacro %} {% block page %} {{ cy.head(v.month.strftime("%B"), v.month.year ~ " · cycle", v.offset == 0, "/cycle", "/cycle?m=" ~ (v.offset - 1), "/cycle?m=" ~ (v.offset + 1), v.offset < 24) }}