|
|
|
|
@ -27,13 +27,23 @@ |
|
|
|
|
<div class="scores"> |
|
|
|
|
<template x-for="score in match.teams[i-1].scores"> |
|
|
|
|
|
|
|
|
|
<span class="score ws" x-data="{ |
|
|
|
|
<span x-data="{ |
|
|
|
|
showScore(score, team) { |
|
|
|
|
let html = `<span class='` |
|
|
|
|
let html = `<span class='score ws w30px` |
|
|
|
|
if (team.is_winner) html += ` winner` |
|
|
|
|
html += `'>` |
|
|
|
|
html += score |
|
|
|
|
html += `</span>` |
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showScore(score, match.teams[i-1])"> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<span x-data="{ |
|
|
|
|
showWalkOut(match, team) { |
|
|
|
|
let html = `` |
|
|
|
|
|
|
|
|
|
if (match.has_walk_out) { |
|
|
|
|
html += `<span class='score ws w60px'>` |
|
|
|
|
@ -43,31 +53,10 @@ |
|
|
|
|
|
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showScore(score, match.teams[i-1])"> |
|
|
|
|
}" x-html="showWalkOut(match, match.teams[i-1])"> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
|
|
|
|
{% if match.started %} |
|
|
|
|
{% for score in team.scores %} |
|
|
|
|
<div class="scores"> |
|
|
|
|
<span class="score ws{% if team.is_winner %} winner{% endif %}">{{ score }}</span> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
{% if match.has_walk_out %} |
|
|
|
|
<span class="score ws w60px"> |
|
|
|
|
{% if team.walk_out %}WO{% endif %} |
|
|
|
|
</span> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
<span class="score ws">{{ team.weight }}</span> |
|
|
|
|
{% endif %} |
|
|
|
|
--> |
|
|
|
|
|
|
|
|
|
<div x-show="i === 1"> |
|
|
|
|
<div class="bottom-border"></div> |
|
|
|
|
|