Skip to content

Commit 7769fd7

Browse files
committed
Shorten change display
1 parent d49b2d5 commit 7769fd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template.html.jinja

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
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 %}"
4040
>
41-
{{ "{:.2f}".format(project.completion) }}% {% if project.change > 0 %}({{ '{:.2f}'.format(project.change) }}% recently){% endif %}
41+
{{ "{:.2f}".format(project.completion) }}% {% if project.change > 0 %}({{ '{:+.2f%}'.format(project.change) }}){% endif %}
4242
</div>
43-
<div class="progress-bar-outer-label">{{ "{:.2f}".format(project.completion) }}% {% if project.change > 0 %}({{ '{:.2f}'.format(project.change) }}% recently){% endif %}</div>
43+
<div class="progress-bar-outer-label">{{ "{:.2f}".format(project.completion) }}% {% if project.change > 0 %}({{ '{:+.2f%}'.format(project.change) }}){% endif %}</div>
4444
</td>
4545
</tr>
4646
{% endfor %}
4747
</tbody>
4848
</table>
49-
<p>* total completion including recent progress, where <i>recently</i> means <i>in the last 30 days</i></p>
49+
<p>* the number in parentheses shows change in the last 30 days, included in the total progress</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)