Add support for "OLD" flags

This commit is contained in:
furo 2021-11-06 23:01:30 +01:00
parent 724dadceb6
commit 8036464c87

View File

@ -112,7 +112,7 @@
<h2> Records! </h2>
{% for record in raceLeaderboard %}
<div class="rank">
<img class="country-image" data-src="https://ddnet.tw/countryflags/{{ record.server }}.png">
<img class="country-image" data-src="https://ddnet.tw/countryflags/{%if record.server %}{{record.server}}{%else%}UNK{%endif%}.png">
<p class="rank-position">{{ record.rank }}.</p>
<p class="rank-player">{{ record.player }}</p>
<p class="rank-time">{{ utils.fancyTime(record.time) }}</p>
@ -124,7 +124,7 @@
<h2> Team records! </h2>
{% for record in teamLeaderboard %}
<div class="rank">
<img class="country-image" data-src="https://ddnet.tw/countryflags/{{ record.server }}.png">
<img class="country-image" data-src="https://ddnet.tw/countryflags/{%if record.server %}{{record.server}}{%else%}UNK{%endif%}.png">
<p class="rank-position">{{ record.teamrank }}.</p>
<p class="rank-player">{{ record.players.join(", ") }}</p>
<p class="rank-time">{{ utils.fancyTime(record.time) }}</p>