Merge pull request #1706 from joachimesque/summary-list-bugfixes

Fixes: Annual summary book list
This commit is contained in:
Mouse Reeve 2021-12-28 06:59:24 -08:00 committed by GitHub
commit d0e44f1ee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -615,7 +615,7 @@ ol.ordered-list li::before {
grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
gap: 1.5rem;
align-items: end;
justify-items: center;
justify-items: stretch;
}
.books-grid > .is-big {

View file

@ -235,14 +235,14 @@
{% for book in books %}
{% if book.id in best_ratings_books_ids %}
<a href="{{ book.local_path }}" class="has-text-centered is-big has-text-success-dark">
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' %}
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' size='xxlarge' %}
<span class="book-title is-serif is-size-5">
{{ book.title }}
</span>
</a>
{% else %}
<a href="{{ book.local_path }}" class="has-text-centered has-text-success-dark">
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' %}
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' size='large' %}
<span class="book-title is-serif is-size-6">
{{ book.title }}
</span>

View file

@ -46,7 +46,7 @@ class AnnualSummary(View):
finish_date__year__gte=year,
finish_date__year__lt=int(year) + 1,
)
.order_by("-finish_date")
.order_by("finish_date")
.values_list("book__id", flat=True)
)