{% extends "base.html" %}

{% block "body" %}
<h2>Moya Debug <small>project details</small></h2>
{%- if .user %}
<p>You are currently signed in as <a href="{% url "user" with username=.user.username %}">${.user.username}</a></p>
{%- else %}
<p>You are <em>not</em> currently signed in</p>
{% endif %}

<h3 class="lead">${.sys.site}</h3>

<h4>Site Data <small>stored in <strong>.site</strong></small></h4>


<div class="well">
    <table class="table table-condensed">
        <thead>
            <tr>
                <th>Setting</th>
                <th>Value</th>
            </tr>
        </thead>
        <tbody>
            {%- for k, v in sorted:items:.site %}
            <tr>
                <td>${k}</td>
                <td>${v}</td>
            </tr>
            {%- endfor %}
        </tbody>
    </table>
</div>

<h4>System Settings <small>stored in <strong>.sys.site</strong></small></h4>
<div class="well">
    <table class="table table-condensed">
        <thead>
            <tr>
                <th>Setting</th>
                <th>Value</th>
            </tr>
        </thead>
        <tbody>
            {%- for k, v in sorted:items:.sys.site %}
            <tr>
                <td>${k}</td>
                <td>${debug:v}</td>
            </tr>
            {%- endfor %}
        </tbody>
    </table>
</div>

<h4>Session Information <small>stored in <b>.session</b></small></h4>
<div class="well">
    <table class="table table-condensed">
        <thead>
            <tr>
                <th>key</th>
                <th>value</th>
            </tr>
        </thead>
        <tbody>
            {% for k, v in sorted:items:.session %}
            <tr>
                <td>${k}</td>
                <td>${debug:v}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>

{% render sections.body %}
{% endblock %}