diff options
Diffstat (limited to 'pydis_site/templates/staff/logs.html')
-rw-r--r-- | pydis_site/templates/staff/logs.html | 76 |
1 files changed, 75 insertions, 1 deletions
diff --git a/pydis_site/templates/staff/logs.html b/pydis_site/templates/staff/logs.html index 66b42f6a..49d9c368 100644 --- a/pydis_site/templates/staff/logs.html +++ b/pydis_site/templates/staff/logs.html @@ -1,5 +1,6 @@ {% extends 'base/base.html' %} {% load static %} +{% load deletedmessage_filters %} {% block title %}Logs for Deleted Message Context {{ message_context.id }}{% endblock %} @@ -8,15 +9,88 @@ {% endblock %} {% block content %} + <ul class="is-size-7"> + <li>Deleted by: <span style="color: {{ actor_colour | hex_colour }}">{{ actor }}</span></li> + <li>Date: {{ creation }}</li> + </ul> + <div class="is-divider has-small-margin"></div> {% for message in messages %} <div class="discord-message"> <div class="discord-message-header"> - <span class="discord-username" style="color: #{{ message.author.top_role.hex_colour }}">{{ message.author.name }}#{{ message.author.discriminator }}</span><span class="discord-message-metadata">Today at 6:15 PM | #helpers | User ID: 190549806198816768</span> + <span class="discord-username" style="color: {{ message.author.top_role.colour | hex_colour }}">{{ message.author }}</span><span class="discord-message-metadata">{{ message.timestamp }} | User ID: {{ message.author.id }}</span> </div> <div class="discord-message-content"> {{ message.content|linebreaks }} </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> + <div class="discord-embed-inner"> + <div class="discord-embed-content"> + <div class="discord-embed-main"> + + {% if embed.author %} + <div class="discord-embed-author"> + {% if embed.author.icon_url %}<img alt="Author Icon" class="discord-embed-author-icon" src="{{ embed.author.icon_url }}">{% endif %} + {% if embed.author.url %}<a class="discord-embed-author-url" href="{{ embed.author.url }}">{% endif %} + <span class="discord-embed-author-name">{{ embed.author.name }}</span> + {% if embed.author.url %}</a>{% endif %} + </div> + {% endif %} + + {% if embed.title %} + <div class="discord-embed-title"> + {% if embed.url %}<a href="{{ embed.url }}">{% endif %} + {{ embed.title }} + {% if embed.url %}</a>{% endif %} + </div> + {% endif %} + + {% if embed.description %} + <div class="discord-embed-description"> + {{ embed.description | linebreaksbr }} + </div> + {% endif %} + + {% if embed.fields %} + <div class="discord-embed-fields"> + {% for field in embed.fields %} + <div class="discord-embed-field{% if field.inline %} discord-embed-field-inline{% endif %}"> + <div class="discord-embed-field-name">{{ field.name }}</div> + <div class="discord-embed-field-value">{{ field.value }}</div> + </div> + {% endfor %} + </div> + {% endif %} + {% if embed.image %} + <div class="discord-embed-image"> + <img alt="Discord Embed Image" src="{{ embed.image.url }}"> + </div> + {% endif %} + </div> + {% if embed.thumbnail %} + <div class="discord-embed-thumbnail"> + <img alt="Embed thumbnail" src="{{ embed.thumbnail.url }}"> + </div> + {% endif %} + </div> + {% if embed.footer or embed.timestamp %} + <div class="discord-embed-footer"> + {% if embed.footer.icon_url %} + <img class="discord-embed-footer-icon" alt="Footer Icon" src="{{ embed.footer.icon_url }}"> + {% endif %} + + {% if embed.footer.text or embed.timestamp %}<span class="discord-embed-footer-text">{% endif %} + {% if embed.footer.text %}{{ embed.footer.text }}{% endif %}{% if embed.footer.text and embed.timestamp %} • {% endif %}{% if embed.timestamp %}{{ embed.timestamp | footer_datetime }}{% endif %} + {% if embed.footer.text or embed.timestamp %}</span>{% endif %} + </div> + {% endif %} + </div> + </div> + {% endfor %} </div> {% endfor %} {% endblock %}
\ No newline at end of file |