{% 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) }}
{{ cy.side(v) }}
{% for d in v.dows %} 5 %} class="weekend"{% endif %}>{{ d }}{% endfor %}
{% for w in v.weeks %}{% for c in w %}
{% if c.on or c.pred %}{{ drop("cy-drop") }}{% endif %} {{ c.num }} {% if c.symbols %}
{% for y in c.symbols %}{% if y.g == "spot" %}{{ drop() }}{% else %}{{ y.g }}{% endif %}{% endfor %}
{% endif %} {% if c.source %}{{ c.source.g }}{% endif %} {% if not c.future %}{% endif %} {% if c.on %}
{{ flows(c.flow) }}
{% endif %}
{% endfor %}{% endfor %}
periodpredicted {% if s.show_fertile %}fertileovulation{% endif %} ♥sex☺☹mood{{ drop() }}spotting💤tired⚡headache ✎log the day
{% endblock %} {% block scripts %} {# day dialog (no browser dialogs) #} {% endblock %}