Dieser Commit ist enthalten in:
Ursprung
72933a46d1
Commit
0ab7d204f2
@ -44,27 +44,31 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<table>
|
<table>
|
||||||
<tr class="font-bold border-b">
|
<thead>
|
||||||
{#each Array(rows) as i (i)}
|
<tr class="font-bold border-b">
|
||||||
<td>{t("announcements.table.time")}</td>
|
{#each Array(rows) as i (i)}
|
||||||
<td>{t("announcements.table.blue")}</td>
|
<td>{t("announcements.table.time")}</td>
|
||||||
<td>{t("announcements.table.red")}</td>
|
<td>{t("announcements.table.blue")}</td>
|
||||||
<td>{t("announcements.table.winner")}</td>
|
<td>{t("announcements.table.red")}</td>
|
||||||
{/each}
|
<td>{t("announcements.table.winner")}</td>
|
||||||
</tr>
|
|
||||||
{#each window(event.fights.filter(f => f.group === group), rows) as fights}
|
|
||||||
<tr>
|
|
||||||
{#each fights as fight (fight.id)}
|
|
||||||
<td>{Intl.DateTimeFormat(astroI18n.locale, {
|
|
||||||
hour: "numeric",
|
|
||||||
minute: "numeric",
|
|
||||||
}).format(new Date(fight.start))}</td>
|
|
||||||
<td class:font-bold={fight.ergebnis === 1} class:italic={fight.ergebnis === 3}>{fight.blueTeam.kuerzel}</td>
|
|
||||||
<td class:font-bold={fight.ergebnis === 2} class:italic={fight.ergebnis === 3}>{fight.redTeam.kuerzel}</td>
|
|
||||||
<td>{getWinner(fight)}</td>
|
|
||||||
{/each}
|
{/each}
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{#each window(event.fights.filter(f => f.group === group), rows) as fights}
|
||||||
|
<tr>
|
||||||
|
{#each fights as fight (fight.id)}
|
||||||
|
<td>{Intl.DateTimeFormat(astroI18n.locale, {
|
||||||
|
hour: "numeric",
|
||||||
|
minute: "numeric",
|
||||||
|
}).format(new Date(fight.start))}</td>
|
||||||
|
<td class:font-bold={fight.ergebnis === 1} class:italic={fight.ergebnis === 3}>{fight.blueTeam.kuerzel}</td>
|
||||||
|
<td class:font-bold={fight.ergebnis === 2} class:italic={fight.ergebnis === 3}>{fight.redTeam.kuerzel}</td>
|
||||||
|
<td>{getWinner(fight)}</td>
|
||||||
|
{/each}
|
||||||
|
</tr>
|
||||||
|
{/each}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -50,20 +50,24 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<table>
|
<table>
|
||||||
<tr class="font-bold border-b">
|
<thead>
|
||||||
{#each Array(rows) as i (i)}
|
<tr class="font-bold border-b">
|
||||||
<td>{t("announcements.table.team")}</td>
|
{#each Array(rows) as i (i)}
|
||||||
<td>{t("announcements.table.points")}</td>
|
<td>{t("announcements.table.team")}</td>
|
||||||
{/each}
|
<td>{t("announcements.table.points")}</td>
|
||||||
</tr>
|
|
||||||
{#each window(teamPoints, rows) as teams}
|
|
||||||
<tr>
|
|
||||||
{#each teams as team (team.team.id)}
|
|
||||||
<td>{team.team.name}</td>
|
|
||||||
<td>{team.points}</td>
|
|
||||||
{/each}
|
{/each}
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{#each window(teamPoints, rows) as teams}
|
||||||
|
<tr>
|
||||||
|
{#each teams as team (team.team.id)}
|
||||||
|
<td>{team.team.name}</td>
|
||||||
|
<td>{team.points}</td>
|
||||||
|
{/each}
|
||||||
|
</tr>
|
||||||
|
{/each}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren