{% extends "server/base.html" %} {% import "computers/macros.html" as m %} {# the overview's stalls: a section of its own, a card a computer under its awning #} {% block root %} class="stalls-page"{% endblock %} {% block top %}{% endblock %} {% block title %}{{ t.text("computers.stalls") }}{% endblock %} {% block head %}{% endblock %} {% block body %}

{{ t.text("computers.stalls") }}

{{ t.text("computers.stalls.counted", {"total": total, "away": away}) if away else t.text("computers.stalls.total", {"total": total}) }}{{ t.text("computers.all") }}{% include "computers/icons/chevron-right.svg" %}
{% if rows %}
{% for row in rows %} {{ m.awning(ref(row.computer.id)) }}
{{ m.os(row.host) }}
{{ row.computer.name }}
{% if row.host %}{{ row.host.name }} · {{ row.host.version }}{% else %}—{% endif %}
{% if row.online %}{{ t.text("computers.online") }}{% elif row.seen_ms %}{{ t.text("computers.away_for", {"lasting": row.seen_ms | lasting}) }}{% else %}{{ t.text("computers.offline") }}{% endif %}
{% endfor %}
{% else %}

{{ t.text("computers.none") }}

{% endif %}
{% endblock %}