{% extends 'base.html' %} {% load i18n %} {% load catalogue_tags %} {% load thumbnail %} {% load pagination_tags %} {% load choose_cites from social_tags %} {% 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 %}
{% 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 %}
{% autopaginate object_list view.page_size %}
{% for book in object_list %} {% include "catalogue/book_box.html" %} {% endfor %}
{% 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 %}