{#- Table rows of a listing, shared by the full page and the live-polling `rows` endpoint. Expects `entries` and `entry_type` (None for the Batches listing). -#} {% from "leeuwenhoek/_macros.html" import time_ago with context %} {% if entry_type %} {% import "leeuwenhoek/entries/" ~ entry_type ~ ".html" as t with context %} {% for e in entries %} {{ t.row(e) }} {% endfor %} {% else %} {# Batches: root entries of any type #} {% for e in entries %} {% import "leeuwenhoek/entries/" ~ e.type ~ ".html" as t with context %} {{ e.type }} {{ t.summary(e) }} {{ time_ago(e.created_at) }} {% endfor %} {% endif %}