{# The audit log, filters and lines: an organization's (org-journal.html) or the instance's (admin-journal.html, `instance_view`: the organization filter, and the organization of each line). #} {% from "ui.html" import when with context %}
{% if instance_view %}
{% endif %}
{{ _("Export (CSV)") }}

{{ _("The export holds the newest {count} lines of the selection at most.", count=export_limit) }}

{% if log.entries %}
    {% for entry in log.entries %}
  1. {{ _(entry.title) }} {% set place = entry.space or (entry.organization if instance_view else none) %} {% if place or entry.subject %} {%- if entry.space %}{{ entry.space.address }} {%- elif place %}{{ place.name }}{% endif %} {%- for subject in entry.subject %}{% if place or not loop.first %} · {% endif %}{{ _(subject) }}{% endfor -%} {% endif %} {% if entry.details %}{% for detail in entry.details %}{% if not loop.first %} · {% endif %}{{ _(detail) }}{% endfor %}{% endif %}
    {{ when(entry.at) }} {% if entry.author %}{{ entry.author.display_name }} @{{ entry.author.username }}{% else %}{{ _(entry.author_label) }}{% endif %}
  2. {% endfor %}
{% else %}

{{ _("No event in this selection.") if not first_page or filters.family or filters.since or filters.until or filters.org else _("No event yet.") }}

{% endif %} {% if links.older_url or not first_page %} {% endif %}