mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-05 09:29:32 +00:00
[HTML] Show "Click to see attachment" on replies to attachment or embed messages without content
Closes #634
This commit is contained in:
@@ -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<MessageGroupTemplateContext>
|
||||
@@ -61,6 +62,10 @@
|
||||
{
|
||||
@Raw(FormatEmbedMarkdown(Model.MessageGroup.ReferencedMessage.Content))
|
||||
}
|
||||
else if (Model.MessageGroup.ReferencedMessage.Attachments.Any() || Model.MessageGroup.ReferencedMessage.Embeds.Any())
|
||||
{
|
||||
<em>Click to see attachment</em> <span>🖼️</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<em>Click to see original message</em>
|
||||
|
||||
@@ -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<PostambleTemplateContext>
|
||||
|
||||
@{/* Close elements opened by preamble */}
|
||||
|
||||
@@ -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<PreambleTemplateContext>
|
||||
|
||||
Reference in New Issue
Block a user