$def with (page) $ _x = ctx.setdefault('cssfile', 'edit') $var title: $_("Edit %(title)s", title=page.key) $:render_template("lib/edit_head", page)
$:macros.TypeChanger(page.type)
$ plugins = ["admin", "openlibrary", "search", "upstream", "worksearch"] $:Dropdown("plugin", args=plugins, value=page.get("plugin", "upstream")).render()
$:macros.EditButtons(comment=page.comment_) $if ctx.user and ctx.user.is_admin():