~linuxgoose/bocpress

ref: HEAD bocpress/main/templates/main/moderation_stats.html -rw-r--r-- 2.9 KiB
7337de89Jordan Robinson update email host to be fetched from .env 8 days ago
                                                                                
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
{% extends 'main/layout.html' %}

{% block title %}Moderation Stats{% endblock %}

{% block content %}
<main>
    <h1>Moderation Stats</h1>
</main>

<section class="moderation-content" style="max-width: 800px;">
    <h3>Totals</h3>
    <div style="display: grid; grid-template-columns: 1fr 120px 1fr 120px; gap: 8px; align-items: center;">
        <div><strong>Users</strong></div>
        <div style="text-align: right;">{{ totals.users }}</div>
        <div><strong>Approved Users</strong></div>
        <div style="text-align: right;">{{ totals.users_approved }}</div>

        <div><strong>Premium Users</strong></div>
        <div style="text-align: right;">{{ totals.users_premium }}</div>
        <div><strong>Users w/ Custom Domain</strong></div>
        <div style="text-align: right;">{{ totals.users_with_custom_domain }}</div>

        <div><strong>Posts (total)</strong></div>
        <div style="text-align: right;">{{ totals.posts }}</div>
        <div><strong>Posts (published)</strong></div>
        <div style="text-align: right;">{{ totals.posts_published }}</div>

        <div><strong>Posts (draft)</strong></div>
        <div style="text-align: right;">{{ totals.posts_draft }}</div>
        <div><strong>Pages</strong></div>
        <div style="text-align: right;">{{ totals.pages }}</div>

        <div><strong>Images</strong></div>
        <div style="text-align: right;">{{ totals.images }}</div>
        <div><strong>Images Size (MB)</strong></div>
        <div style="text-align: right;">{{ totals.images_mb }}</div>

        <div><strong>Comments</strong></div>
        <div style="text-align: right;">{{ totals.comments }}</div>
        <div><strong>Comments (approved)</strong></div>
        <div style="text-align: right;">{{ totals.comments_approved }}</div>

        <div><strong>Subscribers</strong></div>
        <div style="text-align: right;">{{ totals.subscribers }}</div>
        <div><strong>Subscribers (active)</strong></div>
        <div style="text-align: right;">{{ totals.subscribers_active }}</div>

        <div><strong>Notification Sends</strong></div>
        <div style="text-align: right;">{{ totals.notification_sends }}</div>
        <div><strong>Post Snapshots</strong></div>
        <div style="text-align: right;">{{ totals.snapshots }}</div>
    </div>

    <h3 style="margin-top: 24px;">Averages</h3>
    <div style="display: grid; grid-template-columns: 1fr 120px; gap: 8px; align-items: center;">
        <div><strong>Posts per User (avg)</strong></div>
        <div style="text-align: right;">{{ averages.posts_per_user }}</div>
    </div>

    <h3 style="margin-top: 24px;">Latest</h3>
    <div style="display: grid; grid-template-columns: 1fr 200px; gap: 8px; align-items: center;">
        <div><strong>Last Post Published</strong></div>
        <div style="text-align: right;">{{ latest.last_post_date|date:'Y-m-d' }}</div>
    </div>
</section>
{% endblock content %}