Fetch thumbnails from wikidata.
[wolnelektury.git] / src / catalogue / templates / catalogue / related_books.html
1 {% spaceless %}
2   {% load catalogue_random_book from catalogue_tags %}
3   {% load picture_random_picture from picture_tags %}
4
5   {% for pic in pics %}
6     {{ pic.mini_box }}
7   {% endfor %}
8
9   {% for book in books %}
10     {{ book.mini_box }}    
11   {% endfor %}
12
13   {% if random %}
14     {% catalogue_random_book random_excluded_books as random_book %}
15     {% if random_book %}
16       {{ random_book.mini_box }}
17     {% else %}
18       {% picture_random_picture random_excluded_pics as random_pic %}
19       {% if random_pic %}
20         {{ random_pic.mini_box }}
21       {% endif %}
22     {% endif %}
23   {% endif %}
24 {% endspaceless %}