fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nicer search, minor fixes.
[wolnelektury.git]
/
src
/
catalogue
/
templates
/
catalogue
/
2022
/
book_box.html
diff --git
a/src/catalogue/templates/catalogue/2022/book_box.html
b/src/catalogue/templates/catalogue/2022/book_box.html
index
4919ba1
..
97c61d9
100644
(file)
--- a/
src/catalogue/templates/catalogue/2022/book_box.html
+++ b/
src/catalogue/templates/catalogue/2022/book_box.html
@@
-6,7
+6,9
@@
{% if book.is_picture %}
{% if book.image_file %}
{% thumbnail book.image_file "170x240" crop="center" as im %}
{% if book.is_picture %}
{% if book.image_file %}
{% thumbnail book.image_file "170x240" crop="center" as im %}
- <img src="{{ im.url }}" width="{{ im.x }}" height="{{ im.y }}" />
+ <img src="{{ im.url }}"
+ srcset="{{ im.url }} 1x, {{ im.url|resolution:"2x" }} 2x"
+ width="{{ im.x }}" height="{{ im.y }}" />
{% endthumbnail %}
{% endif %}
{% else %}
{% endthumbnail %}
{% endif %}
{% else %}