1 {% extends 'base.html' %}
3 {% load catalogue_tags %}
5 {% load pagination_tags %}
7 {% load choose_cites from social_tags %}
10 {% block breadcrumbs %}
11 <a href="/katalog/"><span>{% trans "Katalog" %}</span></a>
13 <a href="{{ main_tag.get_absolute_catalogue_url }}"><span>{{ main_tag.get_category_display|title }}</span></a>
18 <div class="l-section">
19 <div class="l-author__header">
20 {% if main_tag.photo %}
21 {% thumbnail main_tag.photo '40x40' crop='top' as th %}
23 <img src="{{ th.url }}" alt="{{ main_tag.name }}" srcset="{{ th.url }} 1x, {{ th.url|resolution:"2x" }} 2x">
37 <div class="l-section">
38 <div class="l-books__header">
39 <div class="l-books__input">
40 <i class="icon icon-filter"></i>
41 <input type="text" placeholder="{% trans 'filtry, tytuł' %}" class="quick-filter" data-for="book-list" data-filters="with-filter" value="{{ request.GET.search }}">
42 <div class="filter-container">
44 {% if tag is not main_tag %}
45 <span class="filter filter-category-{{ tag.category }}">
46 <a href="{% catalogue_url view.list_type tag %}">{{ tag }}</a>
47 <a href="{% catalogue_url view.list_type tags -tag %}">✖</a>
54 {% if view.get_orderings %}
55 <div class="l-books__sorting">
56 <span>{% trans 'Sortuj:' %}</span>
58 {% for ordering in view.get_orderings %}
60 {% if ordering.default %}
63 data-order="{{ ordering.slug }}"
65 {% if ordering.active %}
68 >{{ ordering.name }}</button>
70 <select name="sorting">
71 {% for ordering in view.get_orderings %}
73 {% if ordering.default %}
76 value="{{ ordering.slug }}"
78 {% if ordering.active %}
81 >{{ ordering.name }}</option>
89 <div class="l-section">
90 <div class="with-filter">
92 <h2 class="header">{% nice_title_from_tags tags suggested_tags_by_category %}</h2>
93 {% if suggested_tags %}
94 <div class="filter-container">
95 {% for tag in suggested_tags %}
96 <span class="filter filter-category-{{ tag.category }}">
97 <a href="{% catalogue_url view.list_type tags tag %}">{{ tag }}</a>
106 {% autopaginate object_list view.page_size %}
108 <div class="l-section l-section--col">
109 <div class="l-books__grid" id="book-list">
110 {% for book in object_list %}
111 {% include "catalogue/book_box.html" %}
120 {% if translation_list %}
121 <div class="l-section l-section--col">
122 <h2 class="header">Tłumaczenia</h2>
123 <div class="l-books__grid" id="book-list">
124 {% for book in translation_list %}
125 {% include "catalogue/book_box.html" %}
132 <section class="l-section">
133 <div class="l-author">
134 {% with tag=main_tag %}
135 {% include 'catalogue/author_box.html' %}
137 {% choose_cites 3 author=main_tag as cites %}
140 <div class="l-author__quotes">
141 <div class="l-author__quotes__slider">
143 {% for fragment in cites %}
144 <div class="l-author__quotes__slider__item">
145 {% include "catalogue/fragment_slider_box.html" %}