aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-07-29 01:19:44 +0200
committerGravatar Leon Sandøy <[email protected]>2018-07-29 01:19:44 +0200
commitd3e00734059fcc5b347fb5148f2ab28756b788ab (patch)
tree8964b635f12c8f56fa67e94d9370fd48dc121842 /templates
parentMerge branch 'master' into clean_command (diff)
Support for embeds and attachments.
Diffstat (limited to 'templates')
-rw-r--r--templates/main/bot/clean_logs.html71
1 files changed, 70 insertions, 1 deletions
diff --git a/templates/main/bot/clean_logs.html b/templates/main/bot/clean_logs.html
index 00fb3d96..83ee0cba 100644
--- a/templates/main/bot/clean_logs.html
+++ b/templates/main/bot/clean_logs.html
@@ -4,8 +4,77 @@
</head>
<body>
{% for message in messages %}
- <span class="nick" style="color: {{ message.color }}">{{ message.author }}<span class="time">{{ message.timestamp }}</span></span><br>
+
+ <!-- Main message -->
+ <span class="nick" style="color: {{ message.color }}">{{ message.author }}<span class="time">{{ message.timestamp }} | User ID: {{ message.user_id }}</span></span><br>
<span class="text">{{ message.content }}</span>
+
+ <!-- File attachments -->
+ {% for attachment in message.attachments %}
+ <span class="text">{{ attachment }}</span>
+ {% endfor %}
+
+ <!-- Embeds -->
+ {% for embed in message.embeds %}
+ <div class="embed">
+
+ <!-- Title -->
+ {% if embed.title %}
+ {% if embed.url %}
+ <span><strong><a href="{{ embed.url }}">{{ embed.title }}</a></strong></span><br>
+ {% else %}
+ <span><strong>{{ embed.title }}</strong></span><br>
+ {% endif %}
+ {% endif %}
+
+
+ <!-- Description -->
+ {% if embed.description %}
+ <br>
+ <span>{{ embed.description }}</span>
+ {% endif %}
+
+ <!-- Fields -->
+ {% if embed.fields %}
+ <div class="fields">
+ {% for field in embed.fields %}
+ <div class="field">
+ <br>
+ {% if field.name %}
+ <span><strong>{{ field.name }}</strong></span><br>
+ {% endif %}
+
+ <span>{{ field.value }}</span>
+ </div>
+ {% endfor %}
+ </div>
+ {% endif %}
+
+ <!-- Image -->
+ {% if embed.image %}
+ <br>
+ {% if embed.image.url %}
+ <img src="{{ embed.image.url }}">
+ {% endif %}
+ {% endif %}
+
+ <!-- Thumbnail -->
+ {% if embed.thumbnail %}
+ <br>
+ {% if embed.thumbnail.url %}
+ <img src="{{ embed.thumbnail.url }}">
+ {% endif %}
+ {% endif %}
+
+ <!-- Footer -->
+ {% if embed.footer %}
+ <br>
+ {% if embed.footer.text %}
+ <span class="footer">{{ embed.footer.text }}</span>
+ {% endif %}
+ {% endif %}
+ </div>
+ {% endfor %}
{% endfor %}
</body>
</html>