|
|
|
@ -32,15 +32,27 @@
|
|
|
|
|
{{~ # Attachments ~}}
|
|
|
|
|
{{~ for attachment in message.Attachments ~}}
|
|
|
|
|
<div class="chatlog__attachment">
|
|
|
|
|
<a href="{{ attachment.Url }}">
|
|
|
|
|
{{ # Image }}
|
|
|
|
|
{{~ if attachment.IsImage ~}}
|
|
|
|
|
<img class="chatlog__attachment-thumbnail" src="{{ attachment.Url }}" alt="Attachment" />
|
|
|
|
|
{{~ # Non-image ~}}
|
|
|
|
|
{{~ else ~}}
|
|
|
|
|
Attachment: {{ attachment.FileName }} ({{ attachment.FileSize }})
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
</a>
|
|
|
|
|
{{ # Spoiler image }}
|
|
|
|
|
{{~ if attachment.IsSpoiler ~}}
|
|
|
|
|
<div class="spoiler-image">
|
|
|
|
|
<div class="spoiler-warning">Spoiler</div>
|
|
|
|
|
<div class="spoiler-image-wrapper">
|
|
|
|
|
<a href="{{ attachment.Url }}">
|
|
|
|
|
<img class="chatlog__attachment-thumbnail" src="{{ attachment.Url }}" alt="Attachment" />
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{~ else ~}}
|
|
|
|
|
<a href="{{ attachment.Url }}">
|
|
|
|
|
{{ # Non-spoiler image }}
|
|
|
|
|
{{~ if attachment.IsImage ~}}
|
|
|
|
|
<img class="chatlog__attachment-thumbnail" src="{{ attachment.Url }}" alt="Attachment" />
|
|
|
|
|
{{~ # Non-image ~}}
|
|
|
|
|
{{~ else ~}}
|
|
|
|
|
Attachment: {{ attachment.FileName }} ({{ attachment.FileSize }})
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
</a>
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
</div>
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
|
|
|
|
|