1
0
Fork 0

Only show editions with the author on the author page

This commit is contained in:
Mouse Reeve 2022-11-01 18:04:27 -07:00
parent 43202f5bb7
commit 553f170f89
3 changed files with 12 additions and 1 deletions

View file

@ -3,6 +3,7 @@
{% load markdown %}
{% load humanize %}
{% load utilities %}
{% load book_display_tags %}
{% block title %}{{ author.name }}{% endblock %}
@ -141,7 +142,7 @@
<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 %}
{% with book=book|author_edition:author %}
<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 %}