Merge pull request #1853 from bookwyrm-social/author-page

Trying a new query to get author books
This commit is contained in:
Mouse Reeve
2022-01-20 15:19:11 -08:00
committed by GitHub
2 changed files with 5 additions and 24 deletions

View File

@ -141,12 +141,14 @@
<h2 class="title is-4">{% blocktrans with name=author.name %}Books by {{ name }}{% endblocktrans %}</h2>
<div class="columns is-multiline is-mobile">
{% for book in books %}
{% with book=book.default_edition %}
<div class="column is-one-fifth-tablet is-half-mobile is-flex is-flex-direction-column">
<div class="is-flex-grow-1">
{% include 'landing/small-book.html' with book=book %}
</div>
{% include 'snippets/shelve_button/shelve_button.html' with book=book %}
</div>
{% endwith %}
{% endfor %}
</div>