First not working app skeleton with nix support and dependency setup and generated logo not final structure
This commit is contained in:
22
templates/history.html
Normal file
22
templates/history.html
Normal 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}}
|
||||
Reference in New Issue
Block a user