{% import "computers/macros.html" as m %} {% for row in rows %} {% set short = ref(row.computer.id) %} {% set host = row.host if row.online else none %} {# a click anywhere on the row opens it, but in its menu #}
{{ m.os(row.host) }}
{{ row.computer.name }} {% if row.host %}{{ row.host.name }} · {{ row.host.machine }}{% else %}—{% endif %} {{ t.text("computers.online" if row.online else "computers.offline") }} · {% if row.online %}{{ t.text("computers.now") }}{% elif row.seen_ms %}{{ row.seen_ms | ago }}{% else %}{{ t.text("computers.unseen") }}{% endif %} {% if host %}{{ t.text("computers.memory") }}{{ m.cells(host.memory.percent, 8) }}{{ host.memory.percent }}%{% if host.fullest %}{{ t.text("computers.disk") }}{{ m.cells(host.fullest.percent, 8) }}{{ host.fullest.percent }}%{% endif %}{% endif %}
{{ t.text("computers.online" if row.online else "computers.offline") }}
{% if host %}
{{ m.cells(host.memory.percent) }}{{ host.memory.percent }}%{{ host.memory.used | size(host.memory.total) }}
{% if host.fullest %}
{{ m.cells(host.fullest.percent) }}{{ host.fullest.percent }}%{{ host.fullest.used | size(host.fullest.total) }}
{% else %}
—
{% endif %} {% else %}
—
—
{% endif %} {{ row.host.version if row.host else "—" }} {% if row.online %}{{ t.text("computers.now") }}{% elif row.seen_ms %}{{ row.seen_ms | ago }}{% else %}—{% endif %}
{% if row.update or row.share or row.delete %}
{% if row.update %}{% endif %} {% if row.share %}{% endif %} {% if (row.update or row.share) and row.delete %}
{% endif %} {% if row.delete %}{% endif %}
{% endif %}
{% endfor %} {% if more and rows %}
{% endif %}