templates: show document thumbnail only for desktop mode (#40780)
This commit is contained in:
parent
49a74ac0bf
commit
8a75f77f8d
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue