{% extends "admin/layout.html" %} {% block content %}

Dashboard

{% if metrics %}
{% for metric in metrics %} {% if metric.metric_type == 'value' %}
{{ metric.name }}
{{ metric.formatted }}
{% if metric.change is not none %}
{% if metric.change >= 0 %} {% else %} {% endif %} {{ metric.change | abs }}% {{ metric.trend_label }}
{% endif %}
{% elif metric.metric_type == 'partition' %}
{{ metric.name }}
{% for seg in metric.segments %}
{{ seg.label }} {{ seg.value }} ({{ seg.percentage }}%)
{% endfor %}
{% elif metric.metric_type == 'trend' %}
{{ metric.name }}
{% endif %} {% endfor %}
{% else %}

No metrics configured

Call Admin.dashboard(…) with metric instances to display data here.

{% endif %} {% if resources %}

Resources

{% for res_cls in resources %}

{{ res_cls.get_label_plural() }}

Manage {{ res_cls.get_label_plural() | lower }}

{% endfor %}
{% endif %} {% endblock %}