From 4aa43338ba042db76edc1af7d3018f6b63c99e47 Mon Sep 17 00:00:00 2001 From: "Mark F. Heiman" Date: Mon, 30 Oct 2023 16:41:31 -0500 Subject: [PATCH] Hide ILE on pop-ups --- openlibrary/templates/site/body.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlibrary/templates/site/body.html b/openlibrary/templates/site/body.html index 3de102ff98e..fddfa29c720 100644 --- a/openlibrary/templates/site/body.html +++ b/openlibrary/templates/site/body.html @@ -4,7 +4,7 @@ $ show_ol_shell = ctx.get('show_ol_shell', True) $ 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 show_ol_shell and (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())): $bodyclass.append('show-librarian-tools') $bodyattrs.append('data-username="%s"' % ctx.user.key.split('/')[-1])