dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 2bfc8fd5c6fc01e4b6b7016883761acaaf5aac05
parent f53c945018b94e0d0b861f24dcfbd65828f8e3a1
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri,  8 Nov 2024 17:47:33 -0800

fix wrong badge

Diffstat:
Mpkg/web/handlers/interceptors/chess.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go @@ -262,9 +262,9 @@ func (g *ChessGame) renderBoardHTML1(moveIdx int, position *chess.Position, isFl {{ if or (eq $pidStr "piece_e8") (eq $pidStr "piece_e1") }} {{ if and $.WhiteWon }} {{ if eq $pidStr "piece_e8" }} - <div id="{{ $pidStr }}_winner" style="display: block;" class="outcome winner">W</div> - {{ else }} <div id="{{ $pidStr }}_loser" style="display: block;" class="outcome loser">L</div> + {{ else }} + <div id="{{ $pidStr }}_winner" style="display: block;" class="outcome winner">W</div> {{ end }} {{ else if and $.BlackWon }} {{ if eq $pidStr "piece_e8" }}