{% extends "sentry/bases/admin.html" %}

{% block admin-nav-status %} class="active"{% endblock %}

{% load i18n %}
{% load sentry_helpers %}
{% get_sentry_version %}

{% block title %}{% trans "Server Status" %} | {{ block.super }}{% endblock %}

{% block main %}
    <h3>{% trans "Environment" %}</h3>

    {% if environment %}

        <dl class="vars">
            <dt>{% trans "Server Version" %}{% if sentry_version.update_available %} <span class="disabled-indicator tip" title="You're running an old version of Sentry, did you know {{ sentry_version.latest }} is available?"><span class="icon-question" /></span>{% endif %}</dt>
            <dd>
                <pre class="val">{{ sentry_version.current }}</pre>
            </dd>

            <dt>{% trans "Python Version" %}</dt>
            <dd>
<pre class="val">{{ python_version }}</pre>
            </dd>
            <dt>{% trans "Configuration File" %}</dt>
            <dd>
<pre class="val">{{ environment.config }}</pre>
            </dd>
            <dt>{% trans "Uptime" %}</dt>
            <dd>
<pre class="val">{{ environment.start_date|timesince }} (since {{ environment.start_date|date }})</pre>
            </dd>
        </dl>
        <script>$('.tip').tooltip();</script>
    {% else %}
        <p>{% trans "Environment not found (are you using the builtin Sentry webserver?)." %}</p>
    {% endif %}

    <h3>{% trans "Configuration" %}{% if environment.config %} <small>{{ environment.config }}</small>{% endif %}</h3>

    <dl class="vars">
        {% for key, value in config %}
                <dt>{{ key }}</dt>
                <dd>
<pre class="val">{{ value|pprint }}</pre>
                </dd>
        {% endfor %}
    </dl>
{% endblock %}
