{% extends "page.html" %}
{% block breadcrumb %}<a href="/service/documents/">Документация</a>{% endblock %}
{% block page_actions %}
    {% if can_edit %}
    <a href="/service/documents/{{ doc.filename | replace('.md', '') }}/edit" class="btn btn-secondary btn-sm">Редактировать</a>
    {% endif %}
    {% if can_download %}
    <a href="/service/documents/{{ doc.filename | replace('.md', '') }}/download" class="btn btn-primary btn-sm">Скачать</a>
    {% endif %}
    <a href="/service/documents/" class="btn btn-secondary btn-sm">← Назад</a>
{% endblock %}
{% block page_content %}
<div class="card">
    <div class="doc-content">{{ content | safe }}</div>
</div>
{% endblock %}