{# audit/_rows.html — one page of the audit log's rows, then the sentinel that loads the next page as the reader nears it (core.paging, pref 172). #} {% from "_macros.html" import scroll_more, scroll_end %} {% for item in events %} {% set e = item.event %} {{ e.timestamp|ago }} {{ e.username }} {{ item.action or e.action }} {% if item.entity %} {{ e.entity_type|replace('_', ' ') }} {% if item.entity.url %}{{ item.entity.label }}{% else %}{{ item.entity.label }}{% endif %} {% if item.entity.gone %}(deleted){% endif %} {% elif e.entity_type %}{{ e.entity_type|replace('_', ' ') }}{% endif %} {% for f in item.facts %} {{ f.label }} {% if f.url %}{{ f.text }}{% else %}{{ f.text }}{% endif %} {% if not loop.last %}  ·  {% endif %} {% endfor %} {% endfor %} {% if after %} {{ scroll_more("/audit/?before=" ~ (after|urlencode) ~ (("&action=" ~ (action_filter|urlencode)) if action_filter else ""), cols=5) }} {% else %} {{ scroll_end(cols=5) }} {% endif %}