forked from mirrors/bookwyrm
Merge pull request #1706 from joachimesque/summary-list-bugfixes
Fixes: Annual summary book list
This commit is contained in:
commit
d0e44f1ee4
3 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue