{% extends "base.html" %} {% from "layout/icons.html" import icon %} {% from "macros.html" import cost with context %} {% block title %}{{ page.title }}{% endblock %} {% block content %}

{{ page.title }}

{% if page.kind == "digest" %}

{% if page.meta.from_commit %}{{ page.meta.from_commit[:12] }} → {% endif %}{{ page.meta.to_commit[:12] }}

{% elif page.kind == "answer" %}

{% trans when=(page.meta.get("asked_at") or "")[:10], commit=(page.meta.get("built_at") or "")[:12] %}Saved answer, asked {{ when }} at commit {{ commit }}.{% endtrans %}

{% endif %}
{% if page.kind not in ("digest", "answer", "path") %} {% if status == "learned" %}{{ icon("check") }} {{ _("Learned") }}{% elif status == "stale" %}{{ _("Learned, but changed since") }}{% elif status == "read" %}{{ _("Read") }}{% else %}{{ _("Not read yet") }}{% endif %} {% if status == "unread" %} {% elif status == "read" %}{% endif %} {% else %} {% if status == "read" %}{{ _("Read") }}{% else %}{{ _("Not read yet") }}{% endif %} {% if status == "unread" and page.kind == "digest" %}{% endif %} {% endif %}
{% if changes %}
{{ _("What changed since you learned this page") }}
{% for line in changes.splitlines() %}{{ line }}
{% endfor %}
{% endif %} {% if sources_changed %}

{% if page.kind == "answer" %}{{ _("Files this answer was written from have changed since. Saved answers aren't rewritten; ask again for a fresh one.") }}{% else %}{{ _("Files this page was written from have changed since. It will be checked again at the next update.") }}{% endif %}

{% endif %}
{% for segment in segments %} {% if segment.kind == "html" %} {{ segment.html }} {% elif segment.kind == "rationale" %} {% elif segment.kind == "diagram" %} {% with diagram=segment.diagram %}{% include "diagram.html" %}{% endwith %} {% endif %} {% endfor %}
{% if steps %}

{{ _("Steps") }}

    {% for step in steps %}
  1. {{ titles.get(step, step) }}{% if nav.statuses.get(step) == "learned" %}{{ icon("check") }}{% endif %}
  2. {% endfor %}
{% endif %}
{% if checks %}

{{ _("Check your understanding") }}

{% for check in checks %}

{{ check.question }}{% if check.passed %}{{ icon("check") }} {{ _("Passed") }}{% endif %}

{% endfor %}
{% endif %} {% if previous or following %} {% endif %}
{% endblock %}