dorfylegends/backend/templates/entity.html
Robert Janetzko 09b2527115 site history
2022-04-29 13:28:08 +00:00

26 lines
478 B
HTML

{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
<h1>{{ title .Name }}</h1>
{{ .Race }} {{ .Type }}
<h5>Sites</h5>
<table>
{{- range $i, $s := .Sites }}
<tr>
<td> {{ site $s.Id }}</td>
<td> {{ template "events.html" events (history $s.Id) }}</td>
</tr>
{{- end }}
</table>
{{- if ne 0 (len .Sites) }}
{{- end }}
<h3>Events</h3>
{{ template "events.html" events . }}
<p>{{ json . }}</p>
{{- end }}