{# Create a list of recent changes showing last action/diff, item name, time, link to item history, author, and change comment. Logged in users may set (or clear) bookmarks to show fewer days of changes. Use of bookmarks changes the diff action from current vs. last change to current vs. bookmark date. The changes displayed may be for the default namespace, a specific namespace or all namespaces. The "title" variable passed from frontend/views and used in the H1 tag will specify the contents. #} {% extends theme("layout.html") %} {% import "utils.html" as utils %} {# map meta.action to font awesome classes #} {% set awesome_class = { 'REVERT': 'fa fa-undo', 'SAVE': 'fa fa-save', 'RENAME': 'fa fa-pencil-square-o', 'TRASH': 'fa fa-trash-o', } %} {% block head %} {{ super() }} {% endblock %} {% block content %}

{{ title }}

{{ utils.page_links(page_num, pages, url) }} {# make columns line up by creating one long table styled to look like one table per day #} {% for day, revs in history %} {# create day header with date and link for setting bookmark #} {% set latest_timestamp = revs[0]['mtime'] %} {# create a row for each item that was changed on this date, incoming items are sorted in descending order by time #} {% for rev in revs %} {% set meta = rev.meta %} {# create an icon with a link to diff, or other icon indicating state of item #} {# show item name or item id and old name if the item is nameless (deleted) #} {% endfor %} {# use css styling to create a borderless row that looks like a table end #} {% endfor %} {# if user has set a bookmark, create a header with a link to remove bookmark #} {% if bookmark_time %} {% endif %}
{{ day }} {% if user.valid %} {{ _("Set bookmark") }} {% endif %}
{{ utils.item_moniker(rev, rev.fqnames) }} {{ rev.mtime|time_hh_mm }} {{ utils.editor_info(rev) }} {{ rev['comment'] }}
 
{{ bookmark_time|time_datetime }} {{ _("Delete bookmark") }}
{{ utils.page_links(page_num, pages, url) }} {% endblock %}