Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions template.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
<title>Python Docs Translation Dashboard</title>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
<meta name="description" content="Python Docs Translation Dashboard">
</head>
<body>
<h1>Python Docs Translation Dashboard</h1>
<center>
<h1>Python Docs Translation Dashboard</h1>
</center>
<table>
<thead>
<tr>
<th>language</th>
<th>contribute</th>
<th>build</th>
<th>visitors*</th>
<th>translators</th>
Expand All @@ -20,15 +22,15 @@
<tbody>
{% for project in completion_progress | sort(attribute='completion,translators.number') | reverse %}
<tr>
<td data-label="language">{{ project.language.name }} ({{ project.language.code }})</td>
<td data-label="contribute">
{% if project.contribution_link %}<a href="{{ project.contribution_link }}" target="_blank">{% endif %}
{% if project.uses_platform %}platform{% else %}repository{% endif %}
{% if project.contribution_link %}</a>{% endif %}
<td data-label="language">
<a href="{{ project.contribution_link }}" target="_blank">{{ project.language.name }}</a>
({{ project.language.code }})
</td>
<td data-label="build">
{% if project.built %}
<a href="https://docs.python.org/{{ project.language.code }}/" target="_blank">✓{% if project.in_switcher %} in switcher{% endif %}</a>
{% if project.in_switcher %}
<a href="https://docs.python.org/{{ project.language.code }}/" target="_blank">✓</a>
{% elif project.built %}
<a href="https://docs.python.org/{{ project.language.code }}/" target="_blank">□</a>
{% else %}
{% endif %}
Expand Down
Loading