aboutsummaryrefslogtreecommitdiffstats
path: root/templates/main/bot/clean_logs.html
blob: 83ee0cba8f6e620b8ced30af52b82a6c716111bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<html class="clean-logs">
    <head>
        <link rel="stylesheet" href="{{ static_file('css/style.css') }}"/>
    </head>
    <body>
        {% for message in messages %}

            <!-- 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>