|
|
|
|
@ -8,45 +8,39 @@ |
|
|
|
|
<template x-for="i in match.teams.length"> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<div class="table-row-3-colums team-names-box padding-bottom-small"> |
|
|
|
|
|
|
|
|
|
<div class="table-cell table-cell-large"> |
|
|
|
|
<template x-for="name in match.teams[i-1].names"> |
|
|
|
|
|
|
|
|
|
<div class="ws" x-data="{ |
|
|
|
|
showName(name, team) { |
|
|
|
|
let html = `<span class='` |
|
|
|
|
if (team.is_winner) html += `winner` |
|
|
|
|
html += `'>` |
|
|
|
|
html += name |
|
|
|
|
html += `</span>` |
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showName(name, match.teams[i-1])"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
<div class="table-cell alignright"> |
|
|
|
|
<template x-for="score in match.teams[i-1].scores"> |
|
|
|
|
|
|
|
|
|
<span class="score ws" x-data="{ |
|
|
|
|
showScore(score, team) { |
|
|
|
|
let html = `<span class='` |
|
|
|
|
if (team.is_winner) html += `winner` |
|
|
|
|
html += `'>` |
|
|
|
|
html += score |
|
|
|
|
html += `</span>` |
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showScore(score, match.teams[i-1])"> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
<!-- <span class="score ws" x-text="score"></span> --> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div class="match-result"> |
|
|
|
|
<div class="player"> |
|
|
|
|
<template x-for="name in match.teams[i-1].names"> |
|
|
|
|
<div class="ws" x-data="{ |
|
|
|
|
showName(name, team) { |
|
|
|
|
let html = `<span class='` |
|
|
|
|
if (team.is_winner) html += `winner` |
|
|
|
|
html += `'>` |
|
|
|
|
html += name |
|
|
|
|
html += `</span>` |
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showName(name, match.teams[i-1])"> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
<div class="scores"> |
|
|
|
|
<template x-for="score in match.teams[i-1].scores"> |
|
|
|
|
|
|
|
|
|
<span class="score ws" x-data="{ |
|
|
|
|
showScore(score, team) { |
|
|
|
|
let html = `<span class='` |
|
|
|
|
if (team.is_winner) html += `winner` |
|
|
|
|
html += `'>` |
|
|
|
|
html += score |
|
|
|
|
html += `</span>` |
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showScore(score, match.teams[i-1])"> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div x-show="i === 1"> |
|
|
|
|
<div class="bottom-border"></div> |
|
|
|
|
|