{% extends "django_prometric/components/card.html" %} {% load i18n prometric_extras %} {% block body %}
{% translate "Requests" %}
{{ stats.requests|num }}
{% include "django_prometric/components/_stat_delta.html" with change=deltas.requests %}
{% if stats.unique_visitors is not None %}
{% translate "Unique visitors" %}
{{ stats.unique_visitors|num }}
{% include "django_prometric/components/_stat_delta.html" with change=deltas.unique_visitors %}
{% endif %} {% if stats.page_views is not None %}
{% translate "Page views" %}
{{ stats.page_views|num }}
{% include "django_prometric/components/_stat_delta.html" with change=deltas.page_views %}
{% endif %} {% if stats.bandwidth_bytes is not None %}
{% translate "Bandwidth" %}
{{ stats.bandwidth_bytes|size }}
{% include "django_prometric/components/_stat_delta.html" with change=deltas.bandwidth_bytes %}
{% endif %} {% if stats.cached_requests is not None %}
{% translate "Cache ratio" %}
{{ stats.cache_ratio|pct }}
{% blocktranslate with cached=stats.cached_requests|num %}{{ cached }} cached{% endblocktranslate %}
{% endif %} {% if stats.errors is not None %}
{% translate "Errors" %}
{{ stats.errors|num }}
{{ stats.error_ratio|pct }} {% if deltas.errors %} {{ deltas.errors.delta|delta }} {% endif %}
{% endif %} {% if stats.threats is not None %}
{% translate "Threats" %}
{{ stats.threats|num }}
{% include "django_prometric/components/_stat_delta.html" with change=deltas.threats %}
{% endif %}
{% if deltas %}

{% translate "Coloured changes compare against the window right before this one." %}

{% endif %} {% endblock %}