{% extends 'layout.html' %} {% load i18n %} {% load static %} {% block title %}{% blocktrans %}{{ year }} in the books{% endblocktrans %}{% endblock %} {% block content %}

{% 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 %}
{% 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 %}

{% 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 %}

{% endif %}

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


{% blocktrans %}You rated {{ ratings_total }} books and 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 %}

{% 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 %}