{% load i18n markup %}

<div id="onlineDocs">
    {% if docs %}
        {{ docs|markdown }}
    {% else %}
        <h1>{% trans "No documentation found" %}</h1>
        <p>{% trans "We are sorry but we could not find any documentation for this page." %}</p>
    {% endif %}
    {% if ONLINE_DOCS_DEBUG %}
        <p>{% trans "Documentation filename for this view: " %} {{ document_name }}</p>
        {% if error %}
            <div class="error">
                <p>{% trans "Could not render documentation: " %}<p>
                <p>{{ error }}</p>
            </div>
        {% endif %}
    {% endif %}
</div>
