aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Akarys42 <[email protected]>2019-10-28 18:23:47 +0100
committerGravatar Akarys42 <[email protected]>2019-10-28 18:23:47 +0100
commit803331562bcc8bf5b09b2a7e9fcfbe00e8796ea9 (patch)
treeacb29b0f172342f0bb78a5d5d2d39d5099335cfb
parentAdd migration for message.attachments (diff)
Show attachments in staff logs
-rw-r--r--pydis_site/templates/staff/logs.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/templates/staff/logs.html b/pydis_site/templates/staff/logs.html
index 9c8ed7d3..a0bfa2a7 100644
--- a/pydis_site/templates/staff/logs.html
+++ b/pydis_site/templates/staff/logs.html
@@ -24,6 +24,11 @@
<div class="discord-message-content">
{{ message.content|linebreaks }}
</div>
+ <div class="discord-message-attachments">
+ {% for attachment in message.attachments %}
+ <img alt="Attachment" class="discord-attachment" src="{{ attachment }}">
+ {% endfor %}
+ </div>
{% for embed in message.embeds %}
<div class="discord-embed is-size-7">
<div class="discord-embed-color" style="background-color: {% if embed.color %}{{ embed.color | hex_colour }}{% else %}#cacbce{% endif %}"></div>