b15fd30c4f
CI / changes (pull_request) Successful in 1s
CI / unit (pull_request) Successful in 8s
CI / integration (pull_request) Successful in 12s
CI / ui (pull_request) Successful in 27s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m6s
- #4 bag label: '{n} in the bag' / 'Bag is empty' (was 'Bag {n}') - #6 allow a single trailing dot in display names (backend + UI regex + tests) - #1 double-tap zooms toward the tapped cell, not the top-left - #8 shuffle fires a short multi-pulse haptic - #11 highlighted/flashing tiles darken their bottom edge too (shadow joins the flash) - #13 toast slides up from the bottom and fades out - #7 hide the logout button (kept wired behind `hidden`) - #16 admin game seats: left-align numeric columns, clarify the 'Hints used' header
30 lines
1.0 KiB
Go Template
30 lines
1.0 KiB
Go Template
{{define "content" -}}
|
|
{{with .Data}}
|
|
<h1>Game {{.ID}}</h1>
|
|
<nav class="subnav"><a href="/_gm/games">« games</a></nav>
|
|
<section class="panel"><h2>Summary</h2>
|
|
<ul class="kv">
|
|
<li><b>Variant</b> {{.Variant}}</li>
|
|
<li><b>Dictionary</b> {{.DictVersion}}</li>
|
|
<li><b>Status</b> {{.Status}}{{if .EndReason}} ({{.EndReason}}){{end}}</li>
|
|
<li><b>Players</b> {{.Players}}</li>
|
|
<li><b>To move</b> seat {{.ToMove}}</li>
|
|
<li><b>Moves</b> {{.MoveCount}}</li>
|
|
<li><b>Created</b> {{.CreatedAt}}</li>
|
|
<li><b>Updated</b> {{.UpdatedAt}}</li>
|
|
{{if .FinishedAt}}<li><b>Finished</b> {{.FinishedAt}}</li>{{end}}
|
|
</ul>
|
|
</section>
|
|
<section class="panel"><h2>Seats</h2>
|
|
<table class="list">
|
|
<thead><tr><th>Seat</th><th>Player</th><th>Score</th><th>Hints used</th><th>Winner</th></tr></thead>
|
|
<tbody>
|
|
{{range .Seats}}
|
|
<tr><td>{{.Seat}}</td><td><a href="/_gm/users/{{.AccountID}}">{{.DisplayName}}</a></td><td>{{.Score}}</td><td>{{.HintsUsed}}</td><td>{{if .Winner}}<span class="ok">winner</span>{{end}}</td></tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
{{end}}
|
|
{{- end}}
|