{# 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). A divider row opens each recency group: Today, Yesterday, Last 7 days, Older. #} {% from "_macros.html" import scroll_more, scroll_end %} {% for item in events %} {% set e = item.event %} {% if item.opens_group %}{{ item.group }}{% endif %} {{ e.timestamp|when }} {{ 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 %}
{% endfor %} {% endfor %} {% if after %} {{ scroll_more("/audit/?before=" ~ (after|urlencode) ~ (("&action=" ~ (action_filter|urlencode)) if action_filter else "") ~ "&group=" ~ (last_group|urlencode), cols=5) }} {% else %} {{ scroll_end(cols=5) }} {% endif %}