Skip to content

Commit 456a081

Browse files
authored
Explain "recent" part of the completion bar (#73)
1 parent 8f071dc commit 456a081

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

template.html.jinja

+7-5
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>
@@ -36,17 +36,19 @@
3636
</td>
3737
<td data-label="completion">
3838
<div class="progress-bar"
39-
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"
39+
style="width: {{ project.completion }}%;{% if project.change %}background: linear-gradient(to left, #94cf96 {{ project.change * 100 / project.completion }}%, #4caf50 {{ project.change * 100 / project.completion }}%);{% else %}background-color: #4caf50;{% endif %}"
4140
>
42-
{{ "{:.2f}".format(project.completion) }}%
41+
{{ '{:.2f}%'.format(project.completion) }} {% if project.change > 0 %}({{ '{:+.2f}%'.format(project.change) }}){% endif %}
42+
</div>
43+
<div class="progress-bar-outer-label">
44+
{{ '{:.2f}%'.format(project.completion) }} {% if project.change > 0 %}({{ '{:+.2f}%'.format(project.change) }}){% endif %}
4345
</div>
44-
<div class="progress-bar-outer-label">{{ "{:.2f}".format(project.completion) }}%</div>
4546
</td>
4647
</tr>
4748
{% endfor %}
4849
</tbody>
4950
</table>
51+
<p>* the number in parentheses shows change in the last 30 days, included in the total completion</p>
5052
<p>For more information about translations, see the <a href="https://devguide.python.org/documentation/translating/" target="_blank">Python Developer’s Guide</a>.</p>
5153
<p>Last updated at {{ generation_time.strftime('%A, %-d %B %Y, %-H:%M:%S %Z') }} (in {{ duration // 60 }}:{{ "{:02}".format(duration % 60) }} minutes).</p>
5254
</body>

0 commit comments

Comments
 (0)