{% extends "cradmin_legacy/layouts/standalone/focused.django.html" %}
{% load i18n %}

{% block title %}
    Devilry - {% trans "Help" %}
{% endblock title %}

{% block pageheader-inner %}
    <h1>{% trans "Help" %}</h1>
{% endblock pageheader-inner %}

{% block content %}
    <ul id="devilry_help_list" class="list-unstyled">
        <li id="devilry_help_official">
            <a href="{{ official_help_url }}">
                {% trans "Get help from the Devilry community." %}
            </a>
            <small class="text-muted">
                {% trans "Guides, forum, issue tracker." %}
            </small>
        </li>
        {% if organization_specific_documentation_url %}
            <li id="devilry_help_organization_specific_documentation">
                <a href="{{ organization_specific_documentation_url }}">
                    {% if organization_specific_documentation_text %}
                        {{ organization_specific_documentation_text }}
                    {% else %}
                        {% trans "Documentation provided by your organization." %}
                    {% endif %}
                </a>
            </li>
        {% endif %}
    </ul>
{% endblock content %}

{% block body %}
    {% if DEVILRY_HELP_PAGE_HEADER_INCLUDE_TEMPLATE %}
        {% include DEVILRY_HELP_PAGE_HEADER_INCLUDE_TEMPLATE %}
    {% endif %}
    {{ block.super }}
    {% if DEVILRY_HELP_PAGE_FOOTER_INCLUDE_TEMPLATE %}
        {% include DEVILRY_HELP_PAGE_FOOTER_INCLUDE_TEMPLATE %}
    {% endif %}

    <div class="container" style="margin-top: 70px;">
        <p class="text-muted text-center"><small>
            Devilry {{ DEVILRY_VERSION }}
        </small></p>
    </div>
{% endblock body %}
