dorfylegends/backend/templates/entity.html

26 lines
460 B
HTML
Raw Normal View History

2022-04-16 23:12:23 +03:00
{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
2022-04-18 11:36:29 +03:00
<h1>{{ title .Name }}</h1>
{{ .Race }} {{ .Type }}
2022-04-29 16:28:08 +03:00
<h5>Sites</h5>
<table>
2022-04-29 16:33:21 +03:00
{{- range .Sites }}
2022-04-29 16:28:08 +03:00
<tr>
2022-04-29 16:33:21 +03:00
<td> {{ site . }}</td>
<td> {{ template "events.html" events (history .) }}</td>
2022-04-29 16:28:08 +03:00
</tr>
{{- end }}
</table>
{{- if ne 0 (len .Sites) }}
{{- end }}
2022-04-18 11:36:29 +03:00
<h3>Events</h3>
2022-04-19 18:46:11 +03:00
{{ template "events.html" events . }}
2022-04-18 11:36:29 +03:00
<p>{{ json . }}</p>
2022-04-16 23:12:23 +03:00
{{- end }}