Skip to content

Commit 8cc4dd9

Browse files
committed
Move percent sign into format specification
1 parent 7769fd7 commit 8cc4dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template.html.jinja

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
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) }}){% 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) }}){% 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 %}

0 commit comments

Comments
 (0)