Fixes #2050: Image preview for attachments

This commit is contained in:
Saria Hajjar
2020-01-04 18:17:41 +00:00
parent feb04f0401
commit 792f38334a
2 changed files with 40 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
<tr{% if not attachment.size %} class="danger"{% endif %}>
<td>
<i class="fa fa-image"></i>
<a href="{{ attachment.image.url }}" target="_blank">{{ attachment }}</a>
<a class="image-preview" href="{{ attachment.image.url }}" target="_blank">{{ attachment }}</a>
</td>
<td>{{ attachment.size|filesizeformat }}</td>
<td>{{ attachment.created }}</td>