|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<div class="chatlog__message-group">
|
|
|
|
|
{{~ # Avatar ~}}
|
|
|
|
|
<div class="chatlog__author-avatar-container">
|
|
|
|
|
<img class="chatlog__author-avatar" src="{{ MessageGroup.Author.AvatarUrl }}" alt="Avatar" />
|
|
|
|
|
<img class="chatlog__author-avatar" src="{{ MessageGroup.Author.AvatarUrl }}" alt="Avatar">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="chatlog__messages">
|
|
|
|
|
{{~ # Author name and timestamp ~}}
|
|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
{{~ # Content ~}}
|
|
|
|
|
{{~ if message.Content ~}}
|
|
|
|
|
<div class="chatlog__content">
|
|
|
|
|
<span class="markdown">{{ message.Content | FormatMarkdown }}</span>
|
|
|
|
|
<div class="markdown">{{ message.Content | FormatMarkdown }}</div>
|
|
|
|
|
|
|
|
|
|
{{~ # Edited timestamp ~}}
|
|
|
|
|
{{~ if message.EditedTimestamp ~}}
|
|
|
|
@ -37,7 +37,7 @@
|
|
|
|
|
<div class="spoiler spoiler--hidden" onclick="showSpoiler(event, this)">
|
|
|
|
|
<div class="spoiler-image">
|
|
|
|
|
<a href="{{ attachment.Url }}">
|
|
|
|
|
<img class="chatlog__attachment-thumbnail" src="{{ attachment.Url }}" alt="Attachment" />
|
|
|
|
|
<img class="chatlog__attachment-thumbnail" src="{{ attachment.Url }}" alt="Attachment">
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -45,7 +45,7 @@
|
|
|
|
|
<a href="{{ attachment.Url }}">
|
|
|
|
|
{{ # Non-spoiler image }}
|
|
|
|
|
{{~ if attachment.IsImage ~}}
|
|
|
|
|
<img class="chatlog__attachment-thumbnail" src="{{ attachment.Url }}" alt="Attachment" />
|
|
|
|
|
<img class="chatlog__attachment-thumbnail" src="{{ attachment.Url }}" alt="Attachment">
|
|
|
|
|
{{~ # Non-image ~}}
|
|
|
|
|
{{~ else ~}}
|
|
|
|
|
Attachment: {{ attachment.FileName }} ({{ attachment.FileSize }})
|
|
|
|
@ -70,7 +70,7 @@
|
|
|
|
|
{{~ if embed.Author ~}}
|
|
|
|
|
<div class="chatlog__embed-author">
|
|
|
|
|
{{~ if embed.Author.IconUrl ~}}
|
|
|
|
|
<img class="chatlog__embed-author-icon" src="{{ embed.Author.IconUrl }}" alt="Author icon" />
|
|
|
|
|
<img class="chatlog__embed-author-icon" src="{{ embed.Author.IconUrl }}" alt="Author icon">
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
|
|
|
|
|
{{~ if embed.Author.Name ~}}
|
|
|
|
@ -122,7 +122,7 @@
|
|
|
|
|
{{~ if embed.Thumbnail ~}}
|
|
|
|
|
<div class="chatlog__embed-thumbnail-container">
|
|
|
|
|
<a class="chatlog__embed-thumbnail-link" href="{{ embed.Thumbnail.Url }}">
|
|
|
|
|
<img class="chatlog__embed-thumbnail" src="{{ embed.Thumbnail.Url }}" alt="Thumbnail" />
|
|
|
|
|
<img class="chatlog__embed-thumbnail" src="{{ embed.Thumbnail.Url }}" alt="Thumbnail">
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{~ end ~}}
|
|
|
|
@ -132,7 +132,7 @@
|
|
|
|
|
{{~ if embed.Image ~}}
|
|
|
|
|
<div class="chatlog__embed-image-container">
|
|
|
|
|
<a class="chatlog__embed-image-link" href="{{ embed.Image.Url }}">
|
|
|
|
|
<img class="chatlog__embed-image" src="{{ embed.Image.Url }}" alt="Image" />
|
|
|
|
|
<img class="chatlog__embed-image" src="{{ embed.Image.Url }}" alt="Image">
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{~ end ~}}
|
|
|
|
@ -142,7 +142,7 @@
|
|
|
|
|
<div class="chatlog__embed-footer">
|
|
|
|
|
{{~ if embed.Footer ~}}
|
|
|
|
|
{{~ if embed.Footer.Text && embed.Footer.IconUrl ~}}
|
|
|
|
|
<img class="chatlog__embed-footer-icon" src="{{ embed.Footer.IconUrl }}" alt="Footer icon" />
|
|
|
|
|
<img class="chatlog__embed-footer-icon" src="{{ embed.Footer.IconUrl }}" alt="Footer icon">
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
|
|
|
|
@ -169,7 +169,7 @@
|
|
|
|
|
<div class="chatlog__reactions">
|
|
|
|
|
{{~ for reaction in message.Reactions ~}}
|
|
|
|
|
<div class="chatlog__reaction">
|
|
|
|
|
<img class="emoji emoji--small" alt="{{ reaction.Emoji.Name }}" title="{{ reaction.Emoji.Name }}" src="{{ reaction.Emoji.ImageUrl }}" />
|
|
|
|
|
<img class="emoji emoji--small" alt="{{ reaction.Emoji.Name }}" title="{{ reaction.Emoji.Name }}" src="{{ reaction.Emoji.ImageUrl }}">
|
|
|
|
|
<span class="chatlog__reaction-count">{{ reaction.Count }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|