{% extends "base.html" %} {# server/templates/review/documents.html — documents of a state: list on the left, preview on the right (images, PDFs, Markdown, text) (E56) #} {% load static forge %} {% block title %}Documents · {% if project.name %}{{ project.name }}{% else %}Project{% endif %} · Forge{% endblock %} {% block content %}
No saved state in storage yet.
{% else %} {% if error %}No documents. Register one in forge.toml: forge docs add docs/architektur.svg.
{% endfor %}{% include "review/_spans.html" with spans=block.spans %}
{% elif block.kind == "p" %}{% include "review/_spans.html" with spans=block.spans %}
{% elif block.kind == "ul" %}{% include "review/_spans.html" with spans=block.spans %}{% elif block.kind == "code" %}
{{ block.text }}
{% elif block.kind == "hr" %}| {% include "review/_spans.html" with spans=cell %} | {% endfor %}
|---|
| {% include "review/_spans.html" with spans=cell %} | {% endfor %}
| {{ forloop.counter }} | {% for css, text in line %}{% if css %}{{ text }}{% else %}{{ text }}{% endif %}{% endfor %} |
Not present in this state: {{ preview.error }}
{% else %}No preview for this kind of file — download it and open it in a suitable program (or run forge docs get {{ chosen.path }}).
{% endif %}