dorfylegends/backend/templates/entity.html
Robert Janetzko 0282977343 site history
2022-04-29 13:33:21 +00:00

26 lines
460 B
HTML

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