$def with (author=None, type=None, limit=25) $# _ = i18n.get_namespace('/macros/RecentChanges') $ page = safeint(query_param('page', '0')) $ ip = query_param('ip', None) $ changes = get_recent_changes(author=author, type=type, ip=ip, limit=limit, offset=page * limit) $ show_users = (query_param('show_users', 'false').lower() == 'true') $for v in changes: $if show_users or not v.key.startswith('/admin/people'): $if v.thing.type.key == '/type/edition': $ name = v.thing.title $elif v.thing.type.key == '/type/author': $ name = v.thing.name $else: $ name = v.key $else:
$_("When") $_("Path") $_("Comments") $_("Actions")
$datestr(v.created)$:macros.TruncateString(name, 35) $v.comment $_("view") - $_("edit") - $_("diff")
No edit history available.
$if len(changes) == limit: ← $_("Older")  |  $if page != 0: $_("Newer") → $else: $_("Newer") →