{{~ # Metadata ~}}
{{ Model.Guild.Name | html.escape }} - {{ Model.Channel.Name | html.escape }}
{{~ # Styles ~}} {{~ # Syntax highlighting ~}}
{{~ # Info ~}}
{{ Model.Guild.Name | html.escape }}
{{ Model.Channel.Name | html.escape }}
{{~ if Model.Channel.Topic ~}}
{{ Model.Channel.Topic | html.escape }}
{{~ end ~}}
{{ Model.Messages | array.size | Format "N0" }} messages
{{~ if Model.From || Model.To ~}}
{{~ if Model.From && Model.To ~}} Between {{ Model.From | FormatDate | html.escape }} and {{ Model.To | FormatDate | html.escape }} {{~ else if Model.From ~}} After {{ Model.From | FormatDate | html.escape }} {{~ else if Model.To ~}} Before {{ Model.To | FormatDate | html.escape }} {{~ end ~}}
{{~ end ~}}
{{~ # Log ~}}
{{~ for group in Model.Messages | GroupMessages ~}}
{{~ # Avatar ~}}
{{~ # Author name and timestamp ~}}
{{ group.Author.Name | html.escape }}
{{ group.Timestamp | FormatDate | html.escape }}
{{~ # Messages ~}} {{~ for message in group.Messages ~}} {{~ # Content ~}} {{~ if message.Content ~}}
{{ message.Content | FormatMarkdown }}
{{~ # Edited timestamp ~}} {{~ if message.EditedTimestamp ~}}
(edited)
{{~ end ~}}
{{~ end ~}} {{~ # Attachments ~}} {{~ for attachment in message.Attachments ~}}
{{ # Image }} {{~ if attachment.IsImage ~}}
{{~ # Non-image ~}} {{~ else ~}} Attachment: {{ attachment.FileName }} ({{ attachment.FileSize }}) {{~ end ~}}
{{~ end ~}} {{~ # Embeds ~}} {{~ for embed in message.Embeds ~}}
{{~ # Author ~}} {{~ if embed.Author ~}}
{{~ if embed.Author.IconUrl ~}}
{{~ end ~}} {{~ if embed.Author.Name ~}}
{{~ if embed.Author.Url ~}}
{{ embed.Author.Name | html.escape }}
{{~ else ~}} {{ embed.Author.Name | html.escape }} {{~ end ~}}
{{~ end ~}}
{{~ end ~}} {{~ # Title ~}} {{~ if embed.Title ~}}
{{~ if embed.Url ~}}
{{ embed.Title | FormatMarkdown }}
{{~ else ~}}
{{ embed.Title | FormatMarkdown }}
{{~ end ~}}
{{~ end ~}} {{~ # Description ~}} {{~ if embed.Description ~}}
{{ embed.Description | FormatMarkdown }}
{{~ end ~}} {{~ # Fields ~}} {{~ if embed.Fields | array.size > 0 ~}}
{{~ for field in embed.Fields ~}}
{{~ if field.Name ~}}
{{ field.Name | FormatMarkdown }}
{{~ end ~}} {{~ if field.Value ~}}
{{ field.Value | FormatMarkdown }}
{{~ end ~}}
{{~ end ~}}
{{~ end ~}}
{{~ # Thumbnail ~}} {{~ if embed.Thumbnail ~}}
{{~ end ~}}
{{~ # Image ~}} {{~ if embed.Image ~}}
{{~ end ~}} {{~ # Footer ~}} {{~ if embed.Footer || embed.Timestamp ~}} {{~ end ~}}
{{~ end ~}} {{~ # Reactions ~}} {{~ if message.Reactions | array.size > 0 ~}}
{{~ for reaction in message.Reactions ~}}
{{ reaction.Count }}
{{~ end ~}}
{{~ end ~}} {{~ end ~}}
{{~ end ~}}