{# lines of the agent's events, newest first; a day other than the one above starts under a line with its date. the end of a page asks for the one before it when it scrolls into view #} {% set base = "/agents/" ~ ref(selected.computer_id) ~ "/" ~ ref(selected.id) ~ "/profile/events" %} {# the first lines to come in take the place of saying there are none #} {% if fresh and lines %}
{% endif %} {% set ns = namespace(day=above) %} {% for line in lines %} {% set day = line.at_ms|day %} {% if day != ns.day %}
{{ day }}
{% set ns.day = day %}{% endif %}
{{ line.at_ms|time }}{{ line.source }}{{ line.text }}{% if line.detail %}{{ line.detail }}{% endif %}
{% endfor %} {% if below and lines and ns.day != below %}
{{ below }}
{% endif %} {% if more %}
{% endif %}