{% extends "base.html" %}
-
+{% load i18n %}
{% block main %}
<main class="l-main">
</div>
{% endif %}
- {% if results.art %}
- <div class="l-container">
- <h2 class="header">{% trans "Obrazy" %}</h2>
- </div>
- <div class="l-section l-section--col">
- <div class="l-books__grid">
- {% for book in results.art %}
- {% include 'catalogue/book_box.html' %}
- {% endfor %}
- </div>
- </div>
- {% endif %}
-
{% if results.snippet %}
<div class="l-container">
<h2 class="header">{% trans "W treści" %}</h2>
{{ book.title }}
</a>
{% for f in snippets %}
- <a class="c-search-result-fragment-text" href='{% url 'book_text' f.book.slug %}#sec{{ f.sec }}'>
+ <a class="c-search-result-fragment-text" href='{% url 'book_text' f.book.slug %}#{{ f.anchor }}'>
{{ f.headline|safe }}
</a>
{% endfor %}