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

Move books page list section #6286

Merged
Show file tree
Hide file tree
Changes from all commits
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
40 changes: 20 additions & 20 deletions openlibrary/templates/type/edition/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -448,27 +448,27 @@ <h3 class="list-header collapse">$_("ID Numbers")</h3>
$ component_times['Review component'] = time()
$:render_template("observations/review_component", work, reader_observations, page.key)
$ component_times['Review component'] = time() - component_times['Review component']
</div>
</div>

<div class="workFooter">
$# 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" id="lists-section"><a href="$page.url()/lists">$_('Lists containing this Book')</a></h2>
<div class="user-book-options">
<div class="Tools tools-override">
$if work:
$ component_times['lists widget: WorkListTime'] = time()
$:render_template("lists/widget", work, include_header=False, include_widget=False)
$ component_times['lists widget: WorkListTime'] = time() - component_times['lists widget: WorkListTime']

$if edition:
$ component_times['lists widget: EditionListTime'] = time()
$:render_template("lists/widget", edition, include_header=False, include_widget=False)
$ component_times['lists widget: EditionListTime'] = time() - component_times['lists widget: EditionListTime']
</div>
<a id="lists-section" name="lists-section tab-section" class="section-anchor"></a>
<div class="workFooter">
$# 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>
<div class="user-book-options">
<div class="Tools tools-override">
$if work:
$ component_times['lists widget: WorkListTime'] = time()
$:render_template("lists/widget", work, include_header=False, include_widget=False)
$ component_times['lists widget: WorkListTime'] = time() - component_times['lists widget: WorkListTime']

$if edition:
$ component_times['lists widget: EditionListTime'] = time()
$:render_template("lists/widget", edition, include_header=False, include_widget=False)
$ component_times['lists widget: EditionListTime'] = time() - component_times['lists widget: EditionListTime']
</div>
</div>
</div>
</div>
</div>

$ component_times['RelatedWorksCarousel'] = time()
Expand Down
1 change: 0 additions & 1 deletion static/css/components/work.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ div.editionAbout {
}

.workFooter {
border-top: 1px solid @lighter-grey;
ul.listLists {
display: flex;
}
Expand Down