{# @description The steps in a record's life, oldest first: when, what, who and a note. A date recorded only to the year or the month is shown as recorded. #} {# @prop title:text | description:"The heading, such as History." #} {# @prop steps:list | description:"[{label, date, day, people, note}]; day is set when the date is a full day." #} {# @prop empty:text | description:"What to say when no step is recorded." #} {# @prop edit_url:text | description:"The key dates' editing page, for someone who may edit them." #} {% load i18n fairdm %} {% if steps %}
    {% for step in steps %}
  1. {% if step.day %}{{ step.day|date:"SHORT_DATE_FORMAT" }}{% elif step.date.precision == "month" %}{{ step.date.start|date:"YEAR_MONTH_FORMAT" }}{% elif step.date %}{{ step.date }}{% else %}{% translate "date not recorded" %}{% endif %}
    {{ step.label }} {% if step.people %}{% for person in step.people %}{{ person }}{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %} {% if step.note %}
    {{ step.note|safe_markdown }}
    {% endif %}
  2. {% endfor %}
{% else %}

{{ empty }}

{% endif %}