{% extends 'layout.html' %} {% load i18n %} {% load static %} {% load humanize %} {% block title %}{% blocktrans %}{{ year }} in the books{% endblocktrans %}{% endblock %} {% block head_links %} {% endblock %} {% block content %} {% with display_name=summary_user.display_name %} {% if user == summary_user %}
{% blocktrans %}{{ display_name }}’s year of reading{% endblocktrans %}
{% trans "Sharing status: public with key" %}
{% trans "The page can be seen by anyone with the complete address." %}
{% trans "Sharing status: private" %}
{% trans "The page is private, only you can see it." %}
{% trans "When you make your page private, the old key won’t give access to the page anymore. A new key will be created if the page is once again made public." %}
{% endif %}{% blocktrans %}Sadly {{ display_name }} didn’t finish any book in {{ year }}{% endblocktrans %}
{% else %}{% trans "That’s great!" %}
{% blocktrans with pages=pages_average|intcomma %}That makes an average of {{ pages }} pages per book.{% endblocktrans %}
{% if no_page_number %}{% blocktrans trimmed count counter=no_page_number %} ({{ no_page_number }} book doesn’t have pages) {% plural %} ({{ no_page_number }} books don’t have pages) {% endblocktrans %}
{% endif %}{% 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 %}
{{ 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 %}
{{ 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 %}Their rating: {{ rating }}{% endblocktrans%} {% endwith %}