diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml index 76ebb10..1df9a41 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml @@ -1,6 +1,7 @@ @using System @using System.Linq @using System.Threading.Tasks +@using DiscordChatExporter.Core.Exporting.Writers.Html; @namespace DiscordChatExporter.Core.Exporting.Writers.Html @inherits MiniRazor.TemplateBase @@ -61,6 +62,10 @@ { @Raw(FormatEmbedMarkdown(Model.MessageGroup.ReferencedMessage.Content)) } + else if (Model.MessageGroup.ReferencedMessage.Attachments.Any() || Model.MessageGroup.ReferencedMessage.Embeds.Any()) + { + Click to see attachment 🖼️ + } else { Click to see original message diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/PostambleTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/PostambleTemplate.cshtml index fc4638a..d979f09 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/PostambleTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/PostambleTemplate.cshtml @@ -1,4 +1,6 @@ -@namespace DiscordChatExporter.Core.Exporting.Writers.Html +@using DiscordChatExporter.Core.Exporting.Writers.Html; + +@namespace DiscordChatExporter.Core.Exporting.Writers.Html @inherits MiniRazor.TemplateBase @{/* Close elements opened by preamble */} diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml index 366f7bf..bf452a7 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml @@ -1,5 +1,6 @@ @using System @using System.Threading.Tasks +@using DiscordChatExporter.Core.Exporting.Writers.Html; @namespace DiscordChatExporter.Core.Exporting.Writers.Html @inherits MiniRazor.TemplateBase