{% extends "server/base.html" %} {% block title %}{{ t.text("usage.title") }}{% endblock %} {% block top %}{% endblock %} {% block head %}{% endblock %} {% block body %} {# how things stand for the account: a sentence on the agents at work, the new conversations waiting and, on a wide screen, the computers away, what is none left out, beside the choice of range; the agents running, a lantern each, and those at work; then each range's turns against as long before and how they went, and its tokens with their cost where a runtime gave one and what they are made of - the range chosen shown, and on a phone today's #} {% set lanterns = {"working": "work", "idle": "on", "failed": "fail", "offline": "off"} %} {% set working = glance.agents | selectattr(1, "equalto", "working") | map(attribute="0.name") | list %} {% set said = [] %} {% if working %}{% set _ = said.append(t.text("usage.said.working", {"n": working | length})) %}{% endif %} {% if glance.pending %}{% set _ = said.append(t.text("usage.said.pending", {"n": glance.pending})) %}{% endif %} {% set wide = said + [t.text("usage.said.offline", {"n": glance.offline})] if glance.offline else said %}
{% endblock %}