feat: add team support to result
This commit is contained in:
@@ -393,9 +393,9 @@ function buildCombView(comb) {
|
||||
<h3>${i18next.t('statistique')} :</h3>
|
||||
<ul>
|
||||
<li>${i18next.t('tauxDeVictoire2', {
|
||||
nb: comb.matchs.length === 0 ? "---" : (comb.totalWin / comb.matchs.length * 100).toFixed(0),
|
||||
nb: comb.matchs.length === 0 ? "---" : (comb.totalWin / comb.matchs.filter(m => m.end).length * 100).toFixed(0),
|
||||
victoires: comb.totalWin,
|
||||
matchs: comb.matchs.length
|
||||
matchs: comb.matchs.filter(m => m.end).length
|
||||
})}
|
||||
</li>
|
||||
<li>${i18next.t('pointsMarqués2', {nb: comb.pointMake})}</li>
|
||||
@@ -423,7 +423,7 @@ function buildCombView(comb) {
|
||||
<td class="has-text-align-center" data-align="center">${match.poule}</td>
|
||||
<td class="has-text-align-center" data-align="center">${match.adv}</td>
|
||||
<td class="has-text-align-center" data-align="center">${scoreToString(match.score)}</td>
|
||||
<td class="has-text-align-center" data-align="center">${match.ratio.toFixed(3)}</td>
|
||||
<td class="has-text-align-center" data-align="center">${match.end ? match.ratio.toFixed(3) : ""}</td>
|
||||
<td class="has-text-align-center" data-align="center">${match.win ? cupImg : (match.eq ? cupImg2 : "")}</td>
|
||||
</tr>`
|
||||
}
|
||||
|
||||
@@ -373,9 +373,9 @@ function CombResult({uuid, combId}) {
|
||||
<h3>{t('statistique')} :</h3>
|
||||
<ul>
|
||||
<li>{t('tauxDeVictoire2', {
|
||||
nb: data.matchs.length === 0 ? "---" : (data.totalWin / data.matchs.length * 100).toFixed(0),
|
||||
nb: data.matchs.length === 0 ? "---" : (data.totalWin / data.matchs.filter(m => m.end).length * 100).toFixed(0),
|
||||
victoires: data.totalWin,
|
||||
matchs: data.matchs.length
|
||||
matchs: data.matchs.filter(m => m.end).length
|
||||
})}
|
||||
</li>
|
||||
<li>{t('pointsMarqués2', {nb: data.pointMake})}</li>
|
||||
@@ -401,7 +401,7 @@ function CombResult({uuid, combId}) {
|
||||
<td style={{textAlign: "center"}}>{match.poule}</td>
|
||||
<td style={{textAlign: "center"}}>{match.adv}</td>
|
||||
<td style={{textAlign: "center"}}>{scoreToString(match.score)}</td>
|
||||
<td style={{textAlign: "center"}}>{match.ratio.toFixed(3)}</td>
|
||||
<td style={{textAlign: "center"}}>{match.end && match.ratio.toFixed(3)}</td>
|
||||
<td style={{textAlign: "left"}}>{match.win ? <CupImg/> : (match.eq ? <CupImg2/> : "")}</td>
|
||||
</tr>)}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user