This commit is contained in:
@@ -255,39 +255,53 @@
|
||||
@for (match of round.matches; track match.id) {
|
||||
<tr>
|
||||
<td class="align-middle w-team">
|
||||
@if (playerHasSubstituteForEvent(match.team1.player1, event)) {
|
||||
<span class="has-substitute" matTooltip="Valt in voor {{ match.team1.player1 | fullName }}" matTooltipPosition="below">
|
||||
{{ getSubstituteForEvent(match.team1.player1, event) }}
|
||||
</span>
|
||||
} @else {
|
||||
{{ match.team1.player1 | fullName }}
|
||||
}
|
||||
@if (event.doublesEvent && match.team1.player2 != null) {
|
||||
<span [ngClass]="playerHasSubstituteForEvent(match.team1.player2, event) ? 'has-substitute' : ''">
|
||||
/ {{ match.team1.player2 | fullName }}
|
||||
</span>
|
||||
}
|
||||
<app-team-display
|
||||
[team]="match.team1"
|
||||
[event]="event"
|
||||
[tournament]="tournament">
|
||||
</app-team-display>
|
||||
</td>
|
||||
<td class="align-middle w-sep">-</td>
|
||||
<td class="align-middle w-team">{{ match.team2 | teamText }}</td>
|
||||
<td class="align-middle w-team">
|
||||
<app-team-display
|
||||
[team]="match.team2"
|
||||
[event]="event"
|
||||
[tournament]="tournament">
|
||||
</app-team-display>
|
||||
</td>
|
||||
<td class="align-middle w-fill"></td>
|
||||
</tr>
|
||||
}
|
||||
@if (round.drawnOut) {
|
||||
<tr>
|
||||
<td class="align-middle w-100" colspan="4"><b>Deze ronde uitgeloot:</b> {{ round.drawnOut | teamText }}</td>
|
||||
<td class="align-middle w-100" colspan="4">
|
||||
<b>Deze ronde uitgeloot:</b> {{ round.drawnOut | teamText }}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- }-->
|
||||
} @else if (round.status == 'IN_PROGRESS') {
|
||||
<table class="table table-hover m-4 wide w-95">
|
||||
<tbody>
|
||||
@for (match of round.matches; track match.id) {
|
||||
<tr>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 1}">{{ match.team1 | teamText }}</td>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 1}">
|
||||
<app-team-display
|
||||
[team]="match.team1"
|
||||
[event]="event"
|
||||
[tournament]="tournament">
|
||||
</app-team-display>
|
||||
</td>
|
||||
<td class="align-middle w-sep">-</td>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 2}">{{ match.team2 | teamText }}</td>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 2}">
|
||||
<app-team-display
|
||||
[team]="match.team2"
|
||||
[event]="event"
|
||||
[tournament]="tournament">
|
||||
</app-team-display>
|
||||
</td>
|
||||
<td class="align-middle w-fill">
|
||||
@if (match.status == 'NOT_STARTED') {
|
||||
<button mat-button (click)="startMatch(match)">
|
||||
@@ -338,9 +352,21 @@
|
||||
<tbody>
|
||||
@for (match of round.matches; track match.id) {
|
||||
<tr>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 1}">{{ match.team1 | teamText }}</td>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 1}">
|
||||
<app-team-display
|
||||
[team]="match.team1"
|
||||
[event]="event"
|
||||
[tournament]="tournament">
|
||||
</app-team-display>
|
||||
</td>
|
||||
<td class="align-middle w-sep">-</td>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 2}">{{ match.team2 | teamText }}</td>
|
||||
<td class="align-middle w-team" [ngClass]="{'winner': checkWinner(match) == 2}">
|
||||
<app-team-display
|
||||
[team]="match.team2"
|
||||
[event]="event"
|
||||
[tournament]="tournament">
|
||||
</app-team-display>
|
||||
</td>
|
||||
<td class="align-middle w-fill">
|
||||
<div class="row result align-items-center">
|
||||
@for (game of match.games; track game.id) {
|
||||
|
||||
Reference in New Issue
Block a user