fix tiebreak in broadcast

bracket-feature
Raz 10 months ago
parent 7e5bb62c8a
commit 32211ebf82
  1. 17
      tournaments/templates/tournaments/broadcast/broadcasted_match.html

@ -21,21 +21,28 @@
</div>
<div class="scores">
<template x-for="score in match.teams[i-1].scores">
<span class="score bold w30px" :class="match.teams[i-1].is_winner ? 'winner' : ''" x-text="score"></span>
<span class="score ws"
:class="{
'w35px': score.tiebreak,
'w30px': !score.tiebreak,
'winner': match.teams[i-1].is_winner
}"
>
<span x-text="score.main"></span>
<template x-if="score.tiebreak">
<sup x-text="score.tiebreak"></sup>
</template>
</span>
</template>
<span x-data="{
showWalkOut(match, team) {
let html = ``
if (match.has_walk_out) {
html += `<span class='score bold w60px'>`
if (team.walk_out) html += `WO`
html += `</span>`
}
return html
},
}" x-html="showWalkOut(match, match.teams[i-1])">

Loading…
Cancel
Save