Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain "recent" part of the completion bar #73

Merged
merged 11 commits into from
Mar 11, 2025
10 changes: 6 additions & 4 deletions template.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<th>language</th>
<th>switcher</th>
<th>translators</th>
<th>completion</th>
<th>completion*</th>
</tr>
</thead>
<tbody>
Expand All @@ -37,16 +37,18 @@
<td data-label="completion">
<div class="progress-bar"
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 %}"
title="{{ '{:.2f}'.format(project.completion) }}%, {{ '{:.2f}'.format(project.change) }}% in the last 30 days"
>
{{ "{:.2f}".format(project.completion) }}%
{{ '{:.2f}%'.format(project.completion) }} {% if project.change > 0 %}({{ '{:+.2f%}'.format(project.change) }}){% endif %}
</div>
<div class="progress-bar-outer-label">
{{ '{:.2f%}'.format(project.completion) }} {% if project.change > 0 %}({{ '{:+.2f%}'.format(project.change) }}){% endif %}
</div>
<div class="progress-bar-outer-label">{{ "{:.2f}".format(project.completion) }}%</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>* the number in parentheses shows change in the last 30 days, included in the total progress</p>
<p>For more information about translations, see the <a href="https://devguide.python.org/documentation/translating/" target="_blank">Python Developer’s Guide</a>.</p>
<p>Last updated at {{ generation_time.strftime('%A, %-d %B %Y, %-H:%M:%S %Z') }} (in {{ duration // 60 }}:{{ "{:02}".format(duration % 60) }} minutes).</p>
</body>
Expand Down
Loading