|
|
@ -7,7 +7,7 @@ |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
{#each attachments as attachment} |
|
|
{#each attachments as attachment} |
|
|
{#if attachment.type.startsWith('image')} |
|
|
{#if attachment.type?.startsWith('image')} |
|
|
<img src={attachment.url} alt={attachment.extension} /> |
|
|
<img src={attachment.url} alt={attachment.extension} /> |
|
|
{:else} |
|
|
{:else} |
|
|
<div class="file">{attachment.extension}</div> |
|
|
<div class="file">{attachment.extension}</div> |
|
|
|