$def with (page)
$ cssfile = ctx.get('cssfile', 'user')
$ bodyclass = ctx.get('bodyclass', [])
$ show_banners = cssfile != 'form'
$ bodyattrs = ctx.get('bodyattrs', [])
$if ctx.path.startswith('/works/OL') or ctx.path.startswith('/authors/OL') or ctx.path.startswith('/books/OL') or ctx.path.startswith('/search'):
$if ctx.user and ((ctx.user.is_librarian() or ctx.user.is_admin()) and ctx.user.is_usergroup_member('/usergroup/librarian-work-merge')):
$bodyclass.append('show-librarian-tools')
$_("It looks like you're offline.")
$# on form pages e.g. manage-covers, add-cover we do not display the header
$# this is consistent with version 1.
$if show_banners:
$:render_template("site/alert")
$:render_template("lib/nav_head", None)
$# don't render test-body-mobile for iframes
$if show_banners:
$#print errors (hidden by default as styles are loaded via JS)
$for flash in get_flash_messages():
$flash.message
$# Paste next line into announcement variable to show the blue banner
$#
Title: Description
Learn More
$ announcement = None
$if announcement:
$:announcement
$:page