{% extends "admin/change_list.html" %} {% load i18n static postgres_metrics jazzmin %} {% block bodyclass %}{{ block.super }} change-list{% endblock %} {% block breadcrumbs %} {% endblock %} {% block object-tools %} {% get_postgres_metrics as metric_list %}
{% endblock object-tools %} {% block content_title %} {% trans 'Database Metrics' %} {% endblock %} {% comment %} {% block content_title %}{{ metric.description|safe }}{% endblock %} {% endcomment %} {% block content %} {% block search %}{% endblock %}
{{ metric.label|capfirst }}

{{ metric.description|striptags|safe }}

{% for result in results %} {% for header in metric.headers %} {% endfor %} {% if result.holds_data %} {% for record in result.records %} {% for item in record %} {% endfor %} {% endfor %} {% resetcycle %} {% else %} {% endif %}
{{ result.alias }} ({{ result.dsn }})
{{ header|capfirst }} {% if header.sort_priority > 0 %}
{% if header.ascending %} {% else %} {% endif %} {% endif %}
{{ item }}
{{ result.reason }}
{% endfor %}
{% endblock %}