Fancy time for the rest of the fields...

This commit is contained in:
BurnyLlama 2021-11-05 11:32:12 +01:00
parent cf82bf4061
commit 193c46caa5

View File

@ -93,7 +93,7 @@
Median time:
</td>
<td>
{{ map.times.median | round(2) }}
{{ utils.fancyTime(map.times.median) }}
</td>
</tr>
<tr>
@ -101,7 +101,7 @@
Average time:
</td>
<td>
{{ map.times.average | round(2) }}
{{ utils.fancyTime(map.times.average) }}
</td>
</tr>
</table>
@ -127,14 +127,7 @@
<img class="country-image" data-src="https://ddnet.tw/countryflags/{{ record.server }}.png">
<p class="rank-position">{{ record.teamrank }}.</p>
<p class="rank-player">{{ record.players.join(", ") }}</p>
<p class="rank-time">
{{ (record.time - (record.time % 60)) / 60 }}:
{%- if record.time | round % 60 > 9 %}
{{- record.time | round % 60 }}
{%- else -%}
0{{- record.time | round % 60 }}
{%- endif %}
</p>
<p class="rank-time">{{ utils.fancyTime(record.time) }}</p>
</div>
{% endfor %}
</div>