Skip to content

Commit d6640d5

Browse files
refactoring
1 parent 14040d8 commit d6640d5

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

templates/chart.html.jinja

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@
3232
{% endfor %}
3333
</tbody>
3434
</table>
35-
35+
<p>* the number in parentheses shows change in the last 30 days, included in the total completion</p>
36+
<p>
37+
Currently being translated into {{ completion_progress|length }} languages.
38+
The documentation has a total string count of {{ '{:,}'.format(counts[0]) }} ({{ '{:,}'.format(counts[1]) }} words).
39+
For more information about translations, see the <a href="https://devguide.python.org/documentation/translating/">Python Developer’s Guide</a>.
40+
</p>
3641
<hr>
3742
<p>You can download the data on this page in <a href="https://github.com/python-docs-translations/dashboard/blob/gh-pages/index.json">JSON format</a>.</p>
3843
<p>You can also find the scripts used to generate these pages <a href="https://github.com/python-docs-translations/dashboard">here</a>.</p>

templates/metadata.html.jinja

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
<html lang="en">
2-
<head>
3-
<title>Python Docs Translation Dashboard</title>
4-
<link rel="stylesheet" href="../src/style.css">
5-
<meta charset="UTF-8">
6-
<base target="_blank">
7-
</head>
8-
<body>
9-
<h1>Python Docs Translation Dashboard</h1>
10-
<nav class="switchpages">
11-
<a href="../index.html" target="_self">main</a> | meta
12-
</nav>
1+
{% extends "base.html.jinja" %}
2+
3+
{% block main %}
134
<table>
145
<thead>
156
<tr>
@@ -38,5 +29,4 @@
3829
</table>
3930
<p>* number of Sphinx build process warnings</p>
4031
<p>Last updated at {{ generation_time.strftime('%A, %-d %B %Y, %-H:%M:%S %Z') }} (in {{ duration // 60 }}:{{ "{:02}".format(duration % 60) }} minutes).</p>
41-
</body>
42-
</html>
32+
{% endblock %}

0 commit comments

Comments
 (0)