Fancy time for the rest of the fields...

main
BurnyLlama 2021-11-05 11:32:12 +01:00
parent cf82bf4061
commit 193c46caa5
1 changed files with 3 additions and 10 deletions

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>