X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a7a0a535382be1fd706c3faca3a81201978ba587..a3b153ea6e30da275edf3e34b8d2f8ca1bb436cc:/src/catalogue/templates/catalogue/2022/author_detail.html diff --git a/src/catalogue/templates/catalogue/2022/author_detail.html b/src/catalogue/templates/catalogue/2022/author_detail.html index 54486fbb5..9b00d8bbd 100644 --- a/src/catalogue/templates/catalogue/2022/author_detail.html +++ b/src/catalogue/templates/catalogue/2022/author_detail.html @@ -6,92 +6,101 @@ {% block breadcrumbs %} Katalog - {{ tags.0.get_category_display|title }} + {% if tags %} + {{ main_tag.get_category_display|title }} + {% endif %} {% endblock %} {% block main %} -
-
- {% if tags.0.photo %} -
- {{ tags.0.name }} -
+
+
+ {% if main_tag.photo %} +
+ {{ main_tag.name }} +
+ {% endif %} +

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

{{ tags.0.name }}

-
+
+
-
-
-
- - -
- {% for tag in tags %} - {% if forloop.counter > 1 %} - - {{ tag }} - ✖ - - {% endif %} - {% endfor %} -
+
+
+
+ + +
+ {% for tag in tags %} + {% if tag is not main_tag %} + + {{ tag }} + ✖ + + {% endif %} + {% endfor %} +
- +
+
+ Sortuj: +
+ + +
-
- Sortuj: -
- - - -
-
-
+
+
-
-

{% nice_title_from_tags tags categories %}

+
+

{% nice_title_from_tags tags categories %}

+ {% if suggest %}
{% for tag in suggest %} - - {{ tag }} + + {{ tag }} {% endfor %}
-
+ {% endif %}
+
-
-
- {% for book in object_list %} - {% include "catalogue/2022/book_box.html" %} - {% endfor %} -
+
+
+ {% for book in object_list %} + {% include "catalogue/2022/book_box.html" %} + {% endfor %}
+
- {% if tags %} + {% if tags %}
- {% with author=tags.0 %} + {% with tag=main_tag %} {% include 'catalogue/2022/author_box.html' %} {% endwith %} - {% choose_cites 3 author=tags.0 as cites %} + {% choose_cites 3 author=main_tag as cites %} {% if cites %} -
-
-
+
+
+
- {% for fragment in cites %} -
- {% include "catalogue/2022/fragment_box.html" %} -
- {% endfor %} + {% for fragment in cites %} +
+ {% include "catalogue/2022/fragment_slider_box.html" %} +
+ {% endfor %} +
-
{% endif %}