{#- One session as a strip: the holder band (CSS, by state), the project, what it is doing or waiting on, and how long. The state is in words too, never colour alone. -#} {% macro strip(s) -%}
  • {% if s.project %}{{ s.project }}{% else %}Unknown project{% endif %} {{ s.short_id }}
    {{ s.state_label }} {% if s.doing %}{{ s.doing }}{% endif %} {% if s.agents %}{{ s.agents }}{% endif %} {% if s.error_code %}Last error {{ s.error_code }}{% endif %}
    {% if s.elapsed_kind == "wait" %} Waiting for {% elif s.elapsed_kind == "ended" %} Ended ago {% else %} Last event ago {% endif %}
  • {%- endmacro %}