Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Lists link to books page navbar #6104

Merged
merged 3 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions openlibrary/macros/EditionNavBar.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
<li>
<a href="#reader-observations">$_("Reviews")</a>
</li>
<li>
<a href="#lists">$_("Lists")</a>
</li>
</ul>
2 changes: 1 addition & 1 deletion openlibrary/templates/type/edition/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ <h3 class="list-header collapse">$_("ID Numbers")</h3>
$# pages like /books/ia:foo00bar are fake records created from metadata API.
$# Adding them to lists doesn't work. Disabling it to avoid any issues.
$if "lists" in ctx.features and not page.is_fake_record():
<h2 class="home-h2"><a href="$page.url()/lists">$_('Lists containing this Book')</a></h2>
<h2 class="home-h2" id="lists"><a href="$page.url()/lists">$_('Lists containing this Book')</a></h2>
homewardgamer marked this conversation as resolved.
Show resolved Hide resolved
<div class="user-book-options">
<div class="Tools tools-override">
$if work:
Expand Down