Skip to content

Commit

Permalink
Remove bye matches from tournament schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
thordy committed Dec 2, 2024
1 parent fa207e6 commit 998c1cf
Showing 1 changed file with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@
</div>
<div style="margin-top: 50px;">
<for|data| of=state.metadata>
$ var match = state.matches[data.match_id]
<div class="block-container" style="height: 80px; margin-top: 40px;">
<span class="tournament-division-info">${data.tournament_group.name} - ${data.match_displayname}</span>
<div style="padding-top: 18px;">
<div class="pname" style="40%; float: left; text-align: right;">${input.players[data.player_home].name}</div>
<div class="pscore">
<if(match.is_finished)>
<span>${match.result}</span>
$ let match = state.matches[data.match_id]
<if(!match.is_bye)>
<div class="block-container" style="height: 80px; margin-top: 40px;">
<span class="tournament-division-info">${data.tournament_group.name} - ${data.match_displayname}</span>
<div style="padding-top: 18px;">
<div class="pname" style="40%; float: left; text-align: right;">${input.players[data.player_home].name}</div>
<div class="pscore">
<if(match.is_finished)>
<span>${match.result}</span>
</if>
<else>
<span/>
</else>
</div>
<div class="pname" style="float: right; text-align: left;">${input.players[data.player_away].name}
<if(match.is_walkover)>
<div class="walkover-title">walkover</div>
</if>
<else>
<span/>
</else>
</div>
<div class="pname" style="float: right; text-align: left;">${input.players[data.player_away].name}
<if(match.is_walkover)>
<div class="walkover-title">walkover</div>
</if>
</div>
</div>
</div>
</div>
</if>
</for>
</div>

0 comments on commit 998c1cf

Please sign in to comment.