fix: update template color logic to match model constants

This commit is contained in:
Grail Finder (aider)
2025-05-03 08:33:00 +03:00
parent 1dcf013766
commit 78b48b8c71

View File

@ -24,7 +24,7 @@
<div class="grid grid-cols-5 gap-2">
{{range .Room.Cards}}
<div class="border p-2 text-center rounded"
style="background-color: {{if eq .Color "white"}}#ffffff{{else if eq .Color "blue"}}#0000ff{{else if eq .Color "red"}}#ff0000{{else if eq .Color "black"}}#000000{{else}}#f5f5dc{{end}};">
style="background-color: {{if eq .Color "white"}}#ffffff{{else if eq .Color "blue"}}#0000ff{{else if eq .Color "red"}}#ff0000{{else if eq .Color "black"}}#000000{{else if eq .Color "beige"}}#f5f5dc{{else}}#f5f5dc{{end}};">
{{if .Revealed}}
{{.Word}}
{{else}}