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 <span data-edit="catalogue/tag/{{ main_tag.id }}"></span>
21 {% if main_tag.photo %}
22 {% thumbnail main_tag.photo '40x40' crop='top' as th %}
24 <img src="{{ th.url }}" alt="{{ main_tag.name }}" srcset="{{ th.url }} 1x, {{ th.url|resolution:"2x" }} 2x">
38 <div class="l-section">
39 <div class="l-books__header">
40 <div class="l-books__input">
41 <i class="icon icon-filter"></i>
42 <input type="text" placeholder="{% trans 'filtry, tytuł' %}" class="quick-filter" data-for="book-list" data-filters="with-filter" value="{{ request.GET.search }}">
43 <div class="filter-container">
45 {% if tag is not main_tag %}
46 <span class="filter filter-category-{{ tag.category }}">
47 <a href="{% catalogue_url view.list_type tag %}">{{ tag }}</a>
48 <a href="{% catalogue_url view.list_type tags -tag %}">✖</a>
55 {% if view.get_orderings %}
56 <div class="l-books__sorting">
57 <span>{% trans 'Sortuj:' %}</span>
59 {% for ordering in view.get_orderings %}
61 {% if ordering.default %}
64 data-order="{{ ordering.slug }}"
66 {% if ordering.active %}
69 >{{ ordering.name }}</button>
71 <select name="sorting">
72 {% for ordering in view.get_orderings %}
74 {% if ordering.default %}
77 value="{{ ordering.slug }}"
79 {% if ordering.active %}
82 >{{ ordering.name }}</option>
90 <div class="l-section">
91 <div class="with-filter">
93 <h2 class="header">{% nice_title_from_tags tags suggested_tags_by_category %}</h2>
94 {% if suggested_tags %}
95 <div class="filter-container">
96 {% for tag in suggested_tags %}
97 <span class="filter filter-category-{{ tag.category }}">
98 <a href="{% catalogue_url view.list_type tags tag %}">{{ tag }}</a>
107 {% autopaginate object_list view.page_size %}
109 <div class="l-section l-section--col">
110 <div class="l-books__grid" id="book-list">
111 {% for book in object_list %}
112 {% include "catalogue/book_box.html" %}
121 {% if translation_list %}
122 <div class="l-section l-section--col">
123 <h2 class="header">Tłumaczenia</h2>
124 <div class="l-books__grid" id="book-list">
125 {% for book in translation_list %}
126 {% include "catalogue/book_box.html" %}
133 <section class="l-section">
134 <div class="l-author">
135 {% with tag=main_tag %}
136 {% include 'catalogue/author_box.html' %}
138 {% choose_cites 3 author=main_tag as cites %}
141 <div class="l-author__quotes">
142 <div class="l-author__quotes__slider">
144 {% for fragment in cites %}
145 <div class="l-author__quotes__slider__item">
146 {% include "catalogue/fragment_slider_box.html" %}