www.fgks.org   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #8478 from mheiman/bugfix/ile_on_popups
Browse files Browse the repository at this point in the history
Hide ILE on pop-ups
  • Loading branch information
cdrini committed Oct 30, 2023
2 parents 2bfc61d + 4aa4333 commit 1ac93f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/templates/site/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 1ac93f7

Please sign in to comment.