Skip to content

Commit 7e91b47

Browse files
committed
Explain "recent" part of the completion bar
1 parent 17e460e commit 7e91b47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

template.html.jinja

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<th>language</th>
1414
<th>switcher</th>
1515
<th>translators</th>
16-
<th>completion</th>
16+
<th>completion*</th>
1717
</tr>
1818
</thead>
1919
<tbody>
@@ -37,16 +37,16 @@
3737
<td data-label="completion">
3838
<div class="progress-bar"
3939
style="width: {{ project.completion }}%;{% if project.change %}background: linear-gradient(to left, lightgreen {{ project.change * 100 / project.completion }}%, #4caf50 {{ project.change * 100 / project.completion }}%);{% else %}background-color: #4caf50;{% endif %}"
40-
title="{{ '{:.2f}'.format(project.completion) }}%, {{ '{:.2f}'.format(project.change) }}% in the last 30 days"
4140
>
42-
{{ "{:.2f}".format(project.completion) }}%
41+
{{ "{:.2f}".format(project.completion) }}% {% if project.change > 0 %}({{ '{:.2f}'.format(project.change) }} recently){% endif %}
4342
</div>
44-
<div class="progress-bar-outer-label">{{ "{:.2f}".format(project.completion) }}%</div>
43+
<div class="progress-bar-outer-label">{{ "{:.2f}".format(project.completion) }}% {% if project.change > 0 %}({{ '{:.2f}'.format(project.change) }} recently){% endif %}</div>
4544
</td>
4645
</tr>
4746
{% endfor %}
4847
</tbody>
4948
</table>
49+
<p>* total completion including recent progress, where <i>recently</i> means <i>in last 30 days</i></p>
5050
<p>For more information about translations, see the <a href="https://devguide.python.org/documentation/translating/" target="_blank">Python Developer’s Guide</a>.</p>
5151
<p>Last updated at {{ generation_time.strftime('%A, %-d %B %Y, %-H:%M:%S %Z') }} (in {{ duration // 60 }}:{{ "{:02}".format(duration % 60) }} minutes).</p>
5252
</body>

0 commit comments

Comments
 (0)