fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6e19546
)
Covers page fix.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 2 May 2022 10:02:22 +0000
(12:02 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 2 May 2022 10:02:22 +0000
(12:02 +0200)
src/cover/templates/cover/image_list.html
patch
|
blob
|
history
diff --git
a/src/cover/templates/cover/image_list.html
b/src/cover/templates/cover/image_list.html
index
2d5608c
..
02a3268
100644
(file)
--- a/
src/cover/templates/cover/image_list.html
+++ b/
src/cover/templates/cover/image_list.html
@@
-20,17
+20,18
@@
{% for image in object_list %}
<div class="col-md-3">
<div class="card">
{% for image in object_list %}
<div class="col-md-3">
<div class="card">
- <a href="{{ image.get_absolute_url }}">
+ <a href="{{ image.get_absolute_url }}">
+ {% if image.file %}
<img style="height: 100px; width: auto;" class="card-img-top" src="{% thumbnail image.file "x100" as thumb %}
{{ thumb.url }}
{% empty %}
{{ image.file.url }}
{% endthumbnail %}" />
<img style="height: 100px; width: auto;" class="card-img-top" src="{% thumbnail image.file "x100" as thumb %}
{{ thumb.url }}
{% empty %}
{{ image.file.url }}
{% endthumbnail %}" />
- <div class="card-body">
-
-
{{ image }}
-
</div>
-</a>
+ {% endif %}
+ <div class="card-body">
+ {{ image }}
+ </div>
+
</a>
</div>
</div>
{% endfor %}
</div>
</div>
{% endfor %}