1 {% extends 'base.html' %}
2 {% load catalogue_tags %}
4 {% load pagination_tags %}
6 {% load choose_cites from social_tags %}
9 {% block breadcrumbs %}
10 <a href="/katalog/"><span>Katalog</span></a>
12 <a href="{{ main_tag.get_absolute_catalogue_url }}"><span>{{ main_tag.get_category_display|title }}</span></a>
17 <div class="l-section">
18 <div class="l-author__header">
19 {% if main_tag.photo %}
20 {% thumbnail main_tag.photo '40x40' crop='top' as th %}
22 <img src="{{ th.url }}" alt="{{ main_tag.name }}" srcset="{{ th.url }} 1x, {{ th.url|resolution:"2x" }} 2x">
36 <div class="l-section">
37 <div class="l-books__header">
38 <div class="l-books__input">
39 <i class="icon icon-filter"></i>
40 <input type="text" placeholder="filtry, tytuł" class="quick-filter" data-for="book-list" data-filters="with-filter" value="{{ request.GET.search }}">
41 <div class="filter-container">
43 {% if tag is not main_tag %}
44 <span class="filter filter-category-{{ tag.category }}">
45 <a href="{% catalogue_url view.list_type tag %}">{{ tag }}</a>
46 <a href="{% catalogue_url view.list_type tags -tag %}">✖</a>
53 {% if view.get_orderings %}
54 <div class="l-books__sorting">
57 {% for ordering in view.get_orderings %}
59 {% if ordering.default %}
62 data-order="{{ ordering.slug }}"
64 {% if ordering.active %}
67 >{{ ordering.name }}</button>
69 <select name="sorting">
70 {% for ordering in view.get_orderings %}
72 {% if ordering.default %}
75 value="{{ ordering.slug }}"
77 {% if ordering.active %}
80 >{{ ordering.name }}</option>
88 <div class="l-section">
89 <div class="with-filter">
91 <h2 class="header">{% nice_title_from_tags tags suggested_tags_by_category %}</h2>
92 {% if suggested_tags %}
93 <div class="filter-container">
94 {% for tag in suggested_tags %}
95 <span class="filter filter-category-{{ tag.category }}">
96 <a href="{% catalogue_url view.list_type tags tag %}">{{ tag }}</a>
105 {% autopaginate object_list view.page_size %}
107 <div class="l-section l-section--col">
108 <div class="l-books__grid" id="book-list">
109 {% for book in object_list %}
110 {% include "catalogue/book_box.html" %}
120 <section class="l-section">
121 <div class="l-author">
122 {% with tag=main_tag %}
123 {% include 'catalogue/author_box.html' %}
125 {% choose_cites 3 author=main_tag as cites %}
128 <div class="l-author__quotes">
129 <div class="l-author__quotes__slider">
131 {% for fragment in cites %}
132 <div class="l-author__quotes__slider__item">
133 {% include "catalogue/fragment_slider_box.html" %}