{% extends "base.html" %}
{% load i18n %}
{% load catalogue_tags reporting_stats %}


{% block titleextra %}{% trans "Katalog" %}{% endblock %}

{% block bodyid %}catalogue-catalogue{% endblock %}

{% block body %}{% block main %}
  <h1>{% trans "Wszystkie utwory" %}</h1>
  <div class="normal-text catalogue-catalogue l-container">
    <p>
      {% count_books as nbooks %}
      {% count_books_root as ntomes %}
      {% blocktrans trimmed %}
        W naszej bibliotece mamy {{ nbooks }} utworów zebranych w {{ ntomes }} tomów.
      {% endblocktrans %}
    </p>

    <p>
      <a href="{% url 'reporting_catalogue_pdf' %}">
        {% trans "Pobierz katalog w formacie PDF." %}
      </a>
    </p>

    <h2>{% trans "Literatura" %}</h2>
    {% plain_list books by_author=True paged=False initial_blocks=True %}

    <h2>{% trans "Kolekcje" %}</h2>
    {% plain_list collections paged=False %}
  </div>
{% endblock %}{% endblock %}
