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