templates: show document thumbnail only for desktop mode (#40780)

This commit is contained in:
Serghei Mihai 2020-03-17 11:51:52 +01:00
parent 49a74ac0bf
commit 8a75f77f8d
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<th {{ column.attrs.th.as_html }}>{{ column.header }}</th>
{% endif %}
{% endfor %}
<th></th>
<th class="desktop-only"></th>
<th class="action-column"></th>
</tr>
</thead>
@ -32,7 +32,7 @@
<td {{ column.attrs.td.as_html }}>{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}</td>
{% endfor %}
{% with thumbnail=row.record.thumbnail_image %}
<td class="thumbnail" rowspan={{ row.record.description|yesno:"2,1" }}>
<td class="thumbnail desktop-only" rowspan={{ row.record.description|yesno:"2,1" }}>
{% if thumbnail %}
<img src="{{ thumbnail.src }}" height="{{ thumbnail.height }}" width="{{ thumbnail.width }}"/>
{% endif %}