$_("%(path)s does not exist.", path=path)
$# Show create link only to admins $if ctx.user and ctx.user.is_admin() and create:
$if "/templates" in path or "/macros" in path:
$def with (path, create=None) $var title: $_("%(path)s is not found", path=path) $if create is None: $ prefixes = ["/authors/", "/books/", "/works/", "/show-marc", "/account/"] $ create = not any(path.startswith(prefix) for prefix in prefixes)
$_("%(path)s does not exist.", path=path)
$# Show create link only to admins $if ctx.user and ctx.user.is_admin() and create: