{% extends "base.html" %} {#- One project document. Expects: project, doc (with shown_version and author), body_html, sections (of the shown text), versions (newest first), edit_url (None for an older version or a document that lives in a repository), optional message. -#} {%- 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 edit_url %}Edit{% endif %}
{% if message %}

{{ message }}

{% endif %} {% if doc.source_url %}{% set repo_href = doc.source_url|http_url %}

Lives in the repository: {% if repo_href %}{{ doc.source_url }}{% else %}{{ doc.source_url }}{% endif %}. Change it there; the board does not edit it.

{% endif %} {% if sections %} {% endif %} {% if doc.body or not doc.source_url %}
{{ body_html }}
{% endif %}

History {{ versions|length }}

{% if versions|length > 1 %}
{% endif %}
{% endblock %}