{% extends 'layout.html' %} {% load i18n %} {% load static %} {% block title %}{% blocktrans %}{{ year }} in the books{% endblocktrans %}{% endblock %} {% block head_links %} {% endblock %} {% block content %}
{% with year=paginated_years|first %}
{% blocktrans %}{{ year }} in the books{% endblocktrans %}
{% endwith %} {% with year=paginated_years|last %} {% if year %}
{% blocktrans %}{{ year }} in the books{% endblocktrans %}
{% endif %} {% endwith %}

📚✨ {% blocktrans %}{{ year }} in the books{% endblocktrans %} ✨📚

{% if not books %}

{% blocktrans %}Sadly you didn't finish any book in {{ year }}{% endblocktrans %}

{% else %}

{% blocktrans %}In {{ year }}, you read {{ books_total }} books
for a total of {{ pages_total }} pages!{% endblocktrans %}

{% trans "That’s great!" %}

{% blocktrans %}That makes an average of {{ pages_average }} pages per book.{% endblocktrans %}

{% if no_page_number %}

{% blocktrans %}({{ no_page_number }} books don’t have pages){% endblocktrans %}

{% endif %}
{% if book_pages_lowest and book_pages_highest %}
{% include 'snippets/book_cover.html' with book=book_pages_lowest cover_class='is-w-auto-tablet is-h-l-mobile' %}
{% trans "Your shortest read this year" %}

{{ book_pages_lowest.title }}

{% if book_pages_lowest.authors.exists %}

{% trans "by" %} {% include 'snippets/authors.html' with book=book_pages_lowest link_class="has-text-success-dark" %}

{% endif %}

{% with pages=book_pages_lowest.pages %} {% blocktrans %}{{ pages }} pages{% endblocktrans%} {% endwith %}

{% include 'snippets/book_cover.html' with book=book_pages_highest cover_class='is-w-auto-tablet is-h-l-mobile' %}
{% trans "and the longest read" %}

{{ book_pages_highest.title }}

{% if book_pages_highest.authors.exists %}

{% trans "by" %} {% include 'snippets/authors.html' with book=book_pages_highest link_class="has-text-success-dark" %}

{% endif %}

{% with pages=book_pages_highest.pages %} {% blocktrans %}{{ pages }} pages{% endblocktrans%} {% endwith %}

{% endif %}

{% blocktrans %}You left {{ ratings_total }} ratings,
your average rating is {{ rating_average }}{% endblocktrans %}

{% include 'snippets/book_cover.html' with book=book_rating_highest.book cover_class='is-w-auto-tablet is-h-l-mobile' %}
{% trans "Your best rated review" %}

{{ book_rating_highest.book.title }}

{% if book_rating_highest.book.authors.exists %}

{% trans "by" %} {% include 'snippets/authors.html' with book=book_rating_highest.book link_class="has-text-success-dark" %}

{% endif %}

{% with rating=book_rating_highest.rating|floatformat %} {% blocktrans %}Your rating: {{ rating }}{% endblocktrans%} {% endwith %}


{% blocktrans %}All the books you read in 2021{% endblocktrans %}

{% endif %} {% endblock %}