{% extends "base.html" %}
{#- One project document. Expects: project, doc (with shown_version and author), body_html,
sections (of the shown text), versions (newest first). -#}
{%- macro version_select(name, selected) -%}
{%- endmacro %}
{% block title %}{{ doc.title }} · {{ project.name }} · relaybay{% endblock %}
{% block crumbs %}/{{ project.name }}/Docs & rules/{{ doc.slug }}{% endblock %}
{% block content %}
{{ doc.title }}
{{ doc.slug }} · {{ doc.kind }} · {% if doc.shown_version == doc.version %}version {{ doc.version }}{% else %}version {{ doc.shown_version }} of {{ doc.version }} · current{% endif %} · by {{ doc.author }}
{% if sections %}
{% endif %}
{{ body_html }}
History {{ versions|length }}
{% if versions|length > 1 %}
{% endif %}
{% for v in versions %}
-
v{{ v.version }} {{ v.reason }}
{{ v.author }} · {% if v.section %} · section
#{{ v.section }}{% endif %} · {{ v.size }} characters{% if v.version > 1 %} · diff{% endif %}
{% endfor %}
{% endblock %}