dorfylegends/backend/templates/index.html

29 lines
519 B
HTML
Raw Normal View History

2022-05-01 10:32:14 +03:00
{{template "layout.html" .}}
{{define "title"}}Legends Browser{{end}}
{{define "content"}}
<h3>Civilizations</h3>
<ul>
{{- range $race, $civs := .Civilizations }}
<li>{{ $race }}</li>
<ul>
{{- range $civs }}
<li>{{ entity .Id }}</li>
{{- end }}
</ul>
{{- end }}
</ul>
2022-05-01 10:49:08 +03:00
<div id="map" style="height: 400px"></div>
2022-05-01 13:29:39 +03:00
{{initMap}}
{{- range $race, $civs := .Civilizations }}
{{- range $civs }}
{{- range .Sites }}
2022-05-08 10:35:57 +03:00
{{ addSite . true }}
2022-05-01 13:29:39 +03:00
{{- end }}
{{- end }}
{{- end }}
2022-05-01 10:49:08 +03:00
2022-05-01 10:32:14 +03:00
{{- end }}