Skip to content

Commit a7bddc0

Browse files
Slim down and improve template
1 parent 6f54f9a commit a7bddc0

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

template.html.jinja

+11-8
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
<title>Python Docs Translation Dashboard</title>
44
<link rel="stylesheet" href="style.css">
55
<meta charset="UTF-8">
6+
<meta name="description" content="Python Docs Translation Dashboard">
67
</head>
78
<body>
8-
<h1>Python Docs Translation Dashboard</h1>
9+
<center>
10+
<h1>Python Docs Translation Dashboard</h1>
11+
</center>
912
<table>
1013
<thead>
1114
<tr>
@@ -20,15 +23,15 @@
2023
<tbody>
2124
{% for project in completion_progress | sort(attribute='completion,translators.number') | reverse %}
2225
<tr>
23-
<td data-label="language">{{ project.language.name }} ({{ project.language.code }})</td>
24-
<td data-label="contribute">
25-
{% if project.contribution_link %}<a href="{{ project.contribution_link }}" target="_blank">{% endif %}
26-
{% if project.uses_platform %}platform{% else %}repository{% endif %}
27-
{% if project.contribution_link %}</a>{% endif %}
26+
<td data-label="language">
27+
<a href="{{ project.contribution_link }}" target="_blank">{{ project.language.name }}</a>
28+
({{ project.language.code }})
2829
</td>
2930
<td data-label="build">
30-
{% if project.built %}
31-
<a href="https://docs.python.org/{{ project.language.code }}/" target="_blank">✓{% if project.in_switcher %} in switcher{% endif %}</a>
31+
{% elif project.in_switcher %}
32+
<a href="https://docs.python.org/{{ project.language.code }}/" target="_blank">✓</a>
33+
{% elif project.built %}
34+
<a href="https://docs.python.org/{{ project.language.code }}/" target="_blank">□</a>
3235
{% else %}
3336
3437
{% endif %}

0 commit comments

Comments
 (0)