{#- The log of changes, to answer "who did this?": filtered by person, by kind of object and by period, and from a day back; each line who, what, on which object, where, and what changed, the days apart; the whole of it, as filtered, as a spreadsheet. Overrides Abilian Core's page; drawn in `mockups/templates/admin-audit.html`. -#} {% extends "admin/_ads.html" %} {% import "admin/_ads_macros.html" as a with context %} {#- The kinds of objects people know, by their class, with what a line says of one. -#} {% set kinds = { "Community": (_("Communities"), _("the community")), "Thread": (_("Conversations"), _("the conversation")), "Post": (_("Messages in conversations"), _("a message in")), "Document": (_("Documents"), _("the document")), "Folder": (_("Folders"), _("the folder")), "WikiPage": (_("Wiki pages"), _("the wiki page")), "Event": (_("Events"), _("the event")), "Message": (_("Status updates"), _("a status update")), "Comment": (_("Comments"), _("a comment on")), } %} {% set verbs = { "create": ("plus", "ads-tone-success"), "update": ("pencil", "ads-tone-info"), "delete": ("trash", "ads-tone-danger"), "permissions": ("lock", "ads-tone-warning"), } %} {% block page_title %}{{ _("Log") }} ยท {{ _("Administration") }}{% endblock %} {% block heading %}{{ _("Log of changes") }}{% endblock %} {% block actions %}{{ icon("file-spreadsheet") }}{{ _("Export (spreadsheet)") }}{% endblock %} {% macro pager() %} {% if top_date or lowest_date %}
{% if top_date %}{{ _("Newer changes") }}{% else %}{% endif %} {% if lowest_date %}{{ _("Older changes") }}{% endif %}
{% endif %} {% endmacro %} {% block content %}
{#- A new filter starts from the day chosen, or from now: not from a page of newer changes, which would show the oldest after it. -#} {%- if 'before' in request.args %}{% endif %} {{ ngettext("%(num)d change", "%(num)d changes", total) }}
{% for day, day_entries in entries %}

{% else %}

{{ _("No change here.") }}

{% endfor %} {{ pager() }}
{% endblock %}