{% extends "base.html" %}{% set active = 'dashboard' %}
{% block content %}
Dashboard
Devices online
{{ devices_online }} of {{ devices_total }} known
{% if spark %}{% set lx, ly = (spark.points.split(' ') | last).split(',') %}
{# The line is scaled between its own minimum and maximum, so it shows the trend only;
the range is stated in words underneath and in the accessible name. #}
Last 7 days: {{ spark.min }}–{{ spark.max }} online over {{ spark.n }} rounds
{% else %}
A trend line appears after a few discovery rounds.
{% endif %}
Open findings
{{ findings_total }}
{% if findings_total %}
{% for sev, n in counts.items() if n %}{% endfor %}
{% for sev, n in counts.items() if n %}
{{ sev }} {{ n }}
{% endfor %}
{% else %}
Nothing open.
{% endif %}
Last scans
{% for kind, snap in snapshots.items() %}
{{ kind | capitalize }}
{% if snap %}{{ snap.finished_at | local }} · {{ snap.host_count }} hosts{% else %}never{% endif %}
{% endfor %}
{% if ups %}{% include "_ups_tile.html" %}{% endif %}
{% if latency %}
Latency to {{ latency.target }}
{% if latency.last_ms is not none %}{{ latency.last_ms | round(1) }} ms{% else %}no reply{% endif %}
{% if latency.spark %}{% set lx, ly = (latency.spark.points.split(' ') | last).split(',') %}
{% endif %}
Last 24 h: {% if latency.min_ms is not none %}{{ latency.min_ms | round(1) }}–{{ latency.max_ms | round(1) }} ms, {% endif %}{% if latency.loss_rounds %}loss in {{ latency.loss_rounds }} of {{ latency.rounds }} rounds{% else %}no loss in {{ latency.rounds }} rounds{% endif %}