~linuxgoose/bocpress

ref: 42cec5dc9648d56bb8bee0a6e09738f558701e1f bocpress/main/templates/main/transparency.html -rw-r--r-- 3.6 KiB
42cec5dcJordan Robinson fix use blog_user on public template 2 months 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{% extends 'main/layout.html' %}

{% load static %}

{% block title %}Transparency{% endblock %}

{% block content %}
<main>
    <h1>Business Transparency</h1>

    <div>
        <svg version="1.1" viewBox="0 0 500 112" xmlns="http://www.w3.org/2000/svg">
            {% for day, analytic in new_users_per_day.items %}
            <rect
                x="{{ analytic.x_offset }}"
                y="{{ analytic.negative_count_percent }}"
                width="18"
                height="{{ analytic.count_percent }}"
                class="analytics-chart-bar"
                >
                <title>{{ analytic.count }} new users signed up during {{ day|date:'F j, Y' }}</title>
            </rect>

            <text
                x="{{ analytic.x_offset|add:'9' }}"
                y="108"
                text-anchor="middle"
                dominant-baseline="middle"
                class="analytics-chart-text"
                >
                {{ analytic.count }}
            </text>
            {% endfor %}
        </svg>
    </div>

    <section class="pages-generic-grid">
        <article>
            <strong>Total users</strong>
            <div>{{ users }}</div>
        </article>
        <article>
            <strong>Total premium users</strong>
            <div>{{ premium_users }}</div>
        </article>
        <article>
            <strong>Monthly revenue</strong>
            <div>£{{ monthly_revenue|floatformat:2 }}</div>
        </article>

        <article>
            <strong>Total posts</strong>
            <div>{{ posts }}</div>
        </article>
        <article>
            <strong>Total published posts</strong>
            <div>{{ published_posts }}</div>
        </article>
        <article>
            <strong>Total pages</strong>
            <div>{{ pages }}</div>
        </article>

        <article style="grid-column: 1/3;">
            <strong>User count with 0 posts</strong>
            <div>{{ zero_users }} ({{ zero_users_percentage }}%)</div>
        </article>
        <article style="grid-column: 1/3;">
            <strong>User count with 1 post</strong>
            <div>{{ one_users }} ({{ one_users_percentage }}%)</div>
        </article>
        <article style="grid-column: 1/3;">
            <strong>User count with 2+ posts</strong>
            <div>{{ twoplus_users }} ({{ twoplus_users_percentage }}%)</div>
        </article>

        <article style="grid-column: 1/3;">
            <strong>Number of users who have edited at least one post in the last month</strong>
            <div>{{ active_users }}</div>
        </article>
        <article style="grid-column: 1/4;">
            <strong>
                Number of users who have edited at least one post in the last
                month and signed up at least a month ago
            </strong>
            <div>{{ active_nonnew_users }}</div>
        </article>
    </section>


    <hr>
    <section>
        <strong>Service Maintainance Costs</strong>
        <ul>
            <li>Server £3.65/mo</li>
            <li>Email Delivery £0.00/mo</li>
            <li>Off-site backups £1.00/mo</li>
            <li>DNS £0/mo</li>
            <li>Domain name £1.49/mo</li>
            <li>Programmer €0.00/mo</li>
        </ul>
        <strong>Subscription Revenue</strong>
        <ul>
            <li>Monthly revenue £{{ monthly_revenue|floatformat:2 }}/mo</li>
            <li>
                Revenue used to
                <a href="#">fund CO<sub>2</sub> removal</a>
                £{{ revenue_co2|floatformat:2 }}/mo
            </li>
        </ul>
    </section>

</main>

{% include 'partials/footer.html' %}

{% endblock content %}