dkforest

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

commit 3736211ec63eb8254a694bf863501bafa0fccd84
parent 95a5d460352be5fb98aedf4f3a2f403ea9ab20bb
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 11 Jun 2023 19:05:25 -0700

cleanup

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

diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go @@ -351,19 +351,9 @@ func (g *ChessGame) drawPlayerCard(key string, isBlack, isYourTurn bool) string {{ end }} </td> </tr> - <tr style="height: 100%;"> - <td> - <div style="color: #eee;">Outcome: {{ .Outcome }}</div> - </td> - </tr> + <tr style="height: 100%;"><td><div style="color: #eee;">Outcome: {{ .Outcome }}</div></td></tr> - {{ if .GameOver }} - <tr> - <td> - <div><textarea>{{ .PGN }}</textarea></div> - </td> - </tr> - {{ end }} + {{ if .GameOver }}<tr><td><div><textarea>{{ .PGN }}</textarea></div></td></tr>{{ end }} </table> </td></tr></table> ` @@ -417,13 +407,7 @@ func (g *ChessGame) DrawSpectatorCard(isFlipped bool) string { <tr><td style="padding: 10px 0;"><a href="?{{ if not .IsFlipped }}r=1{{ end }}" style="color: #eee;">Flip board</a></td></tr> <tr style="height: 100%;"><td><div style="color: #eee;">Outcome: {{ .Outcome }}</div></td></tr> - {{ if .GameOver }} - <tr> - <td> - <div><textarea>{{ .PGN }}</textarea></div> - </td> - </tr> - {{ end }} + {{ if .GameOver }}<tr><td><div><textarea>{{ .PGN }}</textarea></div></td></tr>{{ end }} </table> </td> </tr>