f8977e6d8a4077e36946d0e49d9508a277ea42c4
[wolnelektury.git] / src / references / templates / references / popup.html
1 {% load thumbnail %}
2 <h2 class="header">
3   <a href="{{ entity.wikipedia_link }}" target="_blank">
4     {{ entity.label }}
5   </a>
6 </h2>
7
8 <div class="l-popup-books">
9 {% for ref in entity.reference_set.all %}
10   <div class="c-search-result-fragment">
11     <div class="l-popup-book-header">
12       <div>
13         {% thumbnail ref.book.cover_clean '150x150' as th %}
14         <a href="{{ ref.book.get_absolute_url }}" target="_blank">
15           <img src="{{ th.url }}" alt="{{ ref.book.pretty_title }}" title="{{ ref.book.pretty_title }}">
16         {% endthumbnail %}
17       </div>
18       <div>
19         {% for author in ref.book.authors %}
20           <a class="c-search-result-fragment-author" href="{{ author.get_absolute_url }}" target="_blank">
21             {{ author.name }}
22           </a>
23         {% endfor %}
24         <a class="c-search-result-fragment-title" href="{{ ref.book.get_absolute_url }}" target="_blank">
25           {{ ref.book.title }}
26         </a>
27       </div>
28     </div>
29
30     {% for occ in ref.occurence_set.all %}
31       <a target="_blank" href="/katalog/lektura/{{ ref.book.slug }}.html#sec{{ occ.section }}" class="c-search-result-fragment-text">
32         {{ occ.html|safe }}
33       </a>
34     {% endfor %}
35       </a>
36   </div>
37 {% endfor %}