File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 27
27
alt ="{{ object.description|default:object.name }} "
28
28
/>
29
29
</ a >
30
+ {% empty %}
31
+ < a href ="{{ object.get_absolute_url }} " class ="d-block text-decoration-none " title ="{{ object.name }} ">
32
+ < div class ="d-flex align-items-center justify-content-center rounded bg-light text-secondary border " style ="width: 200px; height: 200px; ">
33
+ < div class ="text-center ">
34
+ < i class ="mdi mdi-image-broken-variant display-4 "> </ i >
35
+ < div class ="small mt-2 text-dark "> {% trans "Thumbnail cannot be generated" %}</ div >
36
+ < div class ="small fw-bold text-dark "> {% trans "Click to view original" %}</ div >
37
+ </ div >
38
+ </ div >
39
+ </ a >
30
40
{% endthumbnail %}
31
41
< div class ="text-center text-secondary text-truncate fs-5 ">
32
42
{{ object }}
You can’t perform that action at this time.
0 commit comments