-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtemplate.html.jinja
More file actions
56 lines (56 loc) · 1.62 KB
/
template.html.jinja
File metadata and controls
56 lines (56 loc) · 1.62 KB
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
<html lang="en">
<head>
<title>Python Docs Translation Dashboard</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Python Docs Translation Dashboard</h1>
<table>
<thead>
<tr>
<th>language</th>
<th>build</th>
<th><a href="https://plausible.io/data-policy#how-we-count-unique-users-without-cookies" target="_blank">visitors</a></th>
<th>translators</th>
<th>completion</th>
</tr>
</thead>
<tbody>
{% for language, language_name, repo, completion, translators, visitors, build, in_switcher in completion_progress | sort(attribute='3,4') | reverse %}
<tr>
{% if repo %}
<td data-label="language">
<a href="https://github.com/{{ repo }}" target="_blank">
{{ language_name }} ({{ language }})
</a>
</td>
{% else %}
<td data-label="language">{{ language_name }} ({{ language }})</td>
{% endif %}
<td data-label="build">
{% if build %}
<a href="https://docs.python.org/{{ language }}/" target="_blank">✓{% if in_switcher %} in switcher{% endif %}</a>
{% else %}
✗
{% endif %}
</td>
<td data-label="visitors">
{% if build %}
<a href="https://plausible.io/docs.python.org?filters=((contains,page,(/{{ language }}/)))" target="_blank">
{{ '{:,}'.format(visitors) }}
</a>
{% else %}
0
{% endif %}
</td>
<td data-label="translators">{{ translators }}</td>
<td data-label="completion">
<div class="progress-bar" style="width: {{ completion | round(2) }}%;">{{ completion | round(2) }}%</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>Last updated at {{ generation_time.strftime('%A, %d %B %Y, %X %Z') }}.</p>
</body>
</html>