Lots of changes around viewing tickets from css perspective logic changes nwe handlers and service triggers... just lots of stuff...

This commit is contained in:
2025-03-28 10:05:54 +00:00
parent e13b375af7
commit 23e0208317
22 changed files with 410 additions and 148 deletions

View File

@@ -23,17 +23,28 @@
<td>{{ .GameType }}</td>
<td>{{ .DrawDate }}</td>
<td>
{{ .Ball1 }} {{ .Ball2 }} {{ .Ball3 }} {{ .Ball4 }} {{ .Ball5 }}
{{ if ne .Ball6 0 }} {{ .Ball6 }} {{ end }}
<div class="flex flex-wrap gap-1">
{{ range .Balls }}
<div class="ball">{{ . }}</div>
{{ end }}
</div>
<div style="color: red; font-size: 0.75rem; margin-top: 0.25rem;">
MatchedMain: {{ .MatchedMain }} | MatchedBonus: {{ .MatchedBonus }}
</div>
</td>
<td>
{{ if eq .GameType "Lotto" }}
{{ if eq .GameType "Lotto" }}
<span style="color: lightgray; font-style: italic;"></span>
{{ else if gt (intVal .Bonus2) 0 }}
{{ if gt (intVal .Bonus1) 0 }}{{ intVal .Bonus1 }}, {{ end }}
{{ intVal .Bonus2 }}
<div class="flex flex-wrap gap-1">
{{ if gt (intVal .Bonus1) 0 }}
<div class="ball bonus">{{ intVal .Bonus1 }}</div>
{{ end }}
<div class="ball bonus">{{ intVal .Bonus2 }}</div>
</div>
{{ else if gt (intVal .Bonus1) 0 }}
{{ intVal .Bonus1 }}
<div class="ball bonus">{{ intVal .Bonus1 }}</div>
{{ else }}
<span style="color: lightgray;"></span>
{{ end }}