{% extends "django_prometric/base.html" %} {% load i18n prometric_extras %} {% block title %}{% translate "Compare snapshots" %}{% endblock %} {% block page_title %}{% translate "Compare snapshots" %}{% endblock %} {% block page_meta %} {% for snap in snaps %}#{{ snap.pk }} · {{ snap.taken_at|date:"M j, H:i" }} {% endfor %} {% endblock %} {% block page_actions %}
{% for snap in snaps %}{% endfor %}
{% endblock %} {% block content %} {% if filters_changed %}
{% translate "The route filters differ between these snapshots, so route-level numbers may not be directly comparable." %}
{% endif %} {% if headline %}
{% for row in headline %} {% with cell=row.cells|last %}
{{ row.label }}
{% if cell.value == None %}— {% elif row.is_bytes %}{{ cell.value|size }}{% elif row.is_rate %}{{ cell.value|pct }}{% elif row.unit == "ms" %}{{ cell.value|ms }}{% else %}{{ cell.value|num }}{% endif %}
{% if cell.delta != None %}
{{ cell.delta|delta }} {% translate "vs baseline" %}
{% endif %}
{% endwith %} {% endfor %}
{% endif %} {% if sections %}
{% include "django_prometric/_comparison.html" with columns=snaps %} {% include "django_prometric/_comparison.html" with sections=route_sections columns=snaps %}
{% else %}

{% translate "These snapshots share no comparable metrics." %}

{% endif %} {% endblock %}