$def with (page) $if page.type.key in ["/type/work", "/type/edition"]: $ edit_url = page.url(suffix="/edit") $else: $ edit_url = page.key + "?m=edit"
$ author = get_recent_author(page) $if author:
$:_('Last edited by %(author_link)s', author_link=author.render_link())
$else:
$_("Last edited anonymously")
$(page.last_modified and datestr(page.last_modified))
$if not page.is_fake_record():
$_("Edit")