{% extends "page.html" %}
{% block page_content %}
<div class="card">
    <div class="card-header"><h2>Документация</h2></div>
    {% if error %}<div class="alert alert-error">{{ error }}</div>{% endif %}
    {% if docs %}
    <div class="docs-list">{% for d in docs %}
        <div class="doc-item"><a href="/service/documents/{{ d.filename | replace('.md', '') }}">{{ d.title }}</a></div>
    {% endfor %}</div>
    {% else %}
    <div class="empty-state"><h3>Нет доступных документов</h3></div>
    {% endif %}
</div>
{% endblock %}
