$def with (page, h) $putctx("robots", "noindex,nofollow") $# show book title/author name instead of key $if page.type.key in ['/type/edition', '/type/work', '/type/page']: $ name = page.title or 'Title unknown' $elif page.type.key == '/type/author': $ name = page.name or 'Author name unknown' $else: $ name = page.key $var title: $name $ rev = page.latest_revision or page.revision
$:macros.databarHistory(page) $_("History of edits to")

# $name

$_("Revision") | $_("When") | $_("Who") | $_("Comment") | $_("Diff")
--- | --- | --- | --- | ---
$for v in h:
$v.revision | $datestr(v.created) $if v.author: | $v.author.displayname $elif v.ip and v.ip != '127.0.0.1': | $v.ip $else: | $v.ip | $:render_template("history/comment", v) |

$ page = safeint(query_param("page", "0")) $if page != 0: ← $_("Back") $if len(h) == 20: $_("Next") →