First not working app skeleton with nix support and dependency setup and generated logo not final structure

This commit is contained in:
Jonas Hahn
2025-08-22 17:37:43 +02:00
parent 99306dd26f
commit 6f53cddf6c
24 changed files with 1382 additions and 87 deletions

22
templates/history.html Normal file
View File

@@ -0,0 +1,22 @@
{{define "history"}}{{template "base" .}}{{end}}
{{define "content"}}
<div class="card">
<h2>Global history</h2>
<ul class="list">
{{range .Games}}
<li>
<div class="small">{{fmtTime .CreatedAt}}</div>
<div>
{{if .Table}}<span class="badge">{{.Table.Name}}</span> {{end}}
Team A {{.ScoreA}} \u2013 {{.ScoreB}} Team B
</div>
<div class="small">
{{range .PlayersA}}@{{.Username}} {{end}}vs {{range .PlayersB}}@{{.Username}} {{end}}
</div>
</li>
{{else}}
<li class="small">No games yet. Be the first!</li>
{{end}}
</ul>
</div>
{{end}}