From 8663aa61cfa48de8fefd079ae9f17bcd6c35f07c Mon Sep 17 00:00:00 2001 From: Thibaut Valentin Date: Fri, 6 Feb 2026 18:02:11 +0100 Subject: [PATCH] feat: add silver cup png to cm --- .../src/pages/competition/editor/CMTMatchPanel.jsx | 10 ++++++++-- .../pages/competition/editor/CategoryAdminContent.jsx | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/src/pages/competition/editor/CMTMatchPanel.jsx b/src/main/webapp/src/pages/competition/editor/CMTMatchPanel.jsx index 293ba7c..5fca965 100644 --- a/src/main/webapp/src/pages/competition/editor/CMTMatchPanel.jsx +++ b/src/main/webapp/src/pages/competition/editor/CMTMatchPanel.jsx @@ -31,6 +31,12 @@ function CupImg() { alt=""/> } +function CupImg2() { + return +} + export function CategorieSelect({catId, setCatId, menuActions}) { const setLoading = useLoadingSwitcher() const {data: cats, setData: setCats} = useRequestWS('getAllCategory', {}, setLoading); @@ -443,14 +449,14 @@ function MatchList({matches, cat, menuActions, classement = false, currentMatch {!classement && {m.poule}} {index >= firstIndex ? index + 1 - firstIndex : ""} - {m.end && m.win > 0 && } + {m.end && ((m.win > 0 && ) || (m.win === 0 && ))} - {m.end && m.win < 0 && } + {m.end && ((m.win < 0 && ) || (m.win === 0 && ))} ))} diff --git a/src/main/webapp/src/pages/competition/editor/CategoryAdminContent.jsx b/src/main/webapp/src/pages/competition/editor/CategoryAdminContent.jsx index 8fe0aff..ef17a2b 100644 --- a/src/main/webapp/src/pages/competition/editor/CategoryAdminContent.jsx +++ b/src/main/webapp/src/pages/competition/editor/CategoryAdminContent.jsx @@ -30,6 +30,11 @@ function CupImg() { style={{width: "16px"}} src="/img/171891.png" alt=""/> } +function CupImg2() { + return +} export function CategoryContent({cat, catId, setCat, menuActions}) { const setLoading = useLoadingSwitcher() @@ -712,7 +717,7 @@ function MatchList({matches, cat, groups, reducer, classement = false}) { {index + 1} {!classement && {m.poule}} {!classement && {liceName[index % liceName.length]}} - {m.end && m.win > 0 && } + {m.end && ((m.win > 0 && ) || (m.win === 0 && ))} handleCombClick(e, m.id, m.c1)}> @@ -721,7 +726,7 @@ function MatchList({matches, cat, groups, reducer, classement = false}) { onClick={e => handleCombClick(e, m.id, m.c2)}> - {m.end && m.win < 0 && } + {m.end && ((m.win < 0 && ) || (m.win === 0 && ))} {scoreToString2(m, cards_v)} handleEditMatch(m.id)}>