{% import "_macros.html" as ui %} {% if not rows %}
{{ icon('monitor', 24) }} {% if stats.total == 0 and current_user.is_admin %}

No machines yet

Add your first lab PC on the Manage machines page.

{{ icon('server', 15) }}Manage machines {% elif stats.total == 0 %}

No machines yet

An administrator hasn't enrolled any lab PCs.

{% else %}

No machines match

Clear the filters to see them all.

{% endif %}
{% elif view == 'table' %}
{% for row in rows %} {% set m = row.machine %} {% endfor %}
MachineTargetLocationTeamHealthFirewallAvailability
{{ m.hostname }}{{ m.ip }} {% if m.target %}{{ m.target.platform }}{% if m.target.variant %} · {{ m.target.variant }}{% endif %} {{ m.target.software_build }} {% else %}None{% endif %} {{ m.location }} {{ m.owner_team }} {{ ui.health(m) }} {{ ui.firewall(m) }} {{ ui.availability(row) }} {{ ui.connect_button(row, current_user, csrf_token) }}
{% else %}
{% for row in rows %} {% set m = row.machine %}
{{ m.hostname }} {{ m.ip }}{% if m.location %} · {{ m.location }}{% endif %}
{{ icon('cpu', 15) }}
{% if m.target %} {{ m.target.platform }}{% if m.target.variant %} · {{ m.target.variant }}{% endif %} {{ ' · '.join([m.target.software_build, m.owner_team]|select) or ' ' }} {% else %} No target recorded {{ m.owner_team or ' ' }} {% endif %}
{{ ui.health(m) }}{{ ui.firewall(m) }}
{{ ui.availability(row) }}
{{ ui.connect_button(row, current_user, csrf_token) }}
{% endfor %}
{% endif %}