1
0
Fork 0

Merge branch 'main' into redirect-after-shelving-book

This commit is contained in:
Joachim 2023-01-06 15:13:57 +01:00 committed by GitHub
commit 336c92d96e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 73 additions and 17 deletions

View file

@ -10,8 +10,9 @@
{% endblock %}
{% block about_content %}
{% get_current_language as LANGUAGE_CODE %}
{# seven day cache #}
{% cache 604800 about_page_superlatives %}
{% cache 604800 about_page_superlatives LANGUAGE_CODE %}
{% get_book_superlatives as superlatives %}
<section class=" pb-4">

View file

@ -10,7 +10,8 @@
</div>
{% get_current_language as LANGUAGE_CODE %}
{% cache 60 * 60 LANGUAGE_CODE %}
{# 1 hour cache #}
{% cache 3600 landing LANGUAGE_CODE %}
{% get_landing_books as books %}
<section class="tile is-ancestor">
<div class="tile is-vertical is-6">

View file

@ -4,7 +4,7 @@
{% spaceless %}
{% get_current_language as LANGUAGE_CODE %}
{# 6 month cache #}
{# 10 second cache #}
{% cache 10 titleby LANGUAGE_CODE book.id %}
{% if book.authors.exists %}

View file

@ -13,6 +13,10 @@
<span class="ml-2">{{ request.user.display_name }}</span>
</span>
<span class="icon icon-arrow-down is-hidden-mobile" aria-hidden="true"></span>
<span class="summary-on-open">
<span class="icon icon-arrow-left is-small" aria-hidden="true"></span>
{% trans "Back" %}
</span>
</summary>
<div class="dropdown-menu">