X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b0fadf2591f3af957c1c8e0307d0bcef9e9f8538..e24e657ebf536f55c1bde66bd41563fae30a98b0:/src/catalogue/templates/catalogue/book_list.html diff --git a/src/catalogue/templates/catalogue/book_list.html b/src/catalogue/templates/catalogue/book_list.html index 0107f5fd6..dabb0ca48 100644 --- a/src/catalogue/templates/catalogue/book_list.html +++ b/src/catalogue/templates/catalogue/book_list.html @@ -1,37 +1,145 @@ -{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %} +{% extends 'base.html' %} {% load i18n %} {% load catalogue_tags %} -{% load chunk from chunks %} +{% load thumbnail %} +{% load pagination_tags %} -{% block bodyid %}book-a-list{% endblock %} +{% load choose_cites from social_tags %} -{% block titleextra %}{% trans "Listing of all works" %}{% endblock %} -{% block body %} - {% spaceless %} -

{% block book_list_header %}{% trans "Listing of all works" %}{% endblock %}

- -
- {% block book_list_info %} - {% chunk 'book-list' %} - {% endblock %} -
+{% block breadcrumbs %} + {% trans "Katalog" %} + {% if main_tag %} + {{ main_tag.get_category_display|title }} + {% endif %} +{% endblock %} -
+{% block main %} +
+
+ {% if main_tag.photo %} + {% thumbnail main_tag.photo '40x40' crop='top' as th %} +
+ {{ main_tag.name }} +
+ {% endthumbnail %} + {% endif %} +

+ {% if main_tag %} + {{ main_tag.name }} + {% else %} + {{ view.title }} + {% endif %} +

+
+
- +
+
+
+ + +
+ {% for tag in tags %} + {% if tag is not main_tag %} + + {{ tag }} + ✖ + + {% endif %} + {% endfor %} +
-
-

{% trans "Table of Content" %}

-
- {{ rendered_nav }}
+ {% if view.get_orderings %} +
+ {% trans 'Sortuj:' %} +
+ {% for ordering in view.get_orderings %} + + {% endfor %} + +
+
+ {% endif %} +
+
+
+
+
+

{% nice_title_from_tags tags suggested_tags_by_category %}

+ {% if suggested_tags %} +
+ {% for tag in suggested_tags %} + + {{ tag }} + + {% endfor %} +
+ {% endif %}
-
- {% block book_list %} - {{ rendered_book_list }} - {% endblock %} +
+
+ + {% autopaginate object_list view.page_size %} + +
+
+ {% for book in object_list %} + {% include "catalogue/book_box.html" %} + {% endfor %}
- {% trans "↑ top ↑" %} - {% endspaceless %} +
+ +
+ {% paginate %} +
+ + {% if main_tag %} +
+
+ {% with tag=main_tag %} + {% include 'catalogue/author_box.html' %} + {% endwith %} + {% choose_cites 3 author=main_tag as cites %} + {% if cites %} +
+
+
+ + {% for fragment in cites %} +
+ {% include "catalogue/fragment_slider_box.html" %} +
+ {% endfor %} + +
+
+
+ {% endif %} +
+
+ {% endif %} {% endblock %}