From 193c46caa5ea9f7eaa005bd20105167a9c94a82a Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Fri, 5 Nov 2021 11:32:12 +0100 Subject: [PATCH] Fancy time for the rest of the fields... --- views/pages/mapSingle.njk | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/views/pages/mapSingle.njk b/views/pages/mapSingle.njk index 4b0b424..877f5c5 100644 --- a/views/pages/mapSingle.njk +++ b/views/pages/mapSingle.njk @@ -93,7 +93,7 @@ Median time: - {{ map.times.median | round(2) }} + {{ utils.fancyTime(map.times.median) }} @@ -101,7 +101,7 @@ Average time: - {{ map.times.average | round(2) }} + {{ utils.fancyTime(map.times.average) }} @@ -127,14 +127,7 @@

{{ record.teamrank }}.

{{ record.players.join(", ") }}

-

- {{ (record.time - (record.time % 60)) / 60 }}: - {%- if record.time | round % 60 > 9 %} - {{- record.time | round % 60 }} - {%- else -%} - 0{{- record.time | round % 60 }} - {%- endif %} -

+

{{ utils.fancyTime(record.time) }}

{% endfor %}