dorfylegends/backend/templates/index.html
Robert Janetzko 9f38f9b17d map
2022-05-01 10:29:39 +00:00

29 lines
No EOL
514 B
HTML

{{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>
<div id="map" style="height: 400px"></div>
{{initMap}}
{{- range $race, $civs := .Civilizations }}
{{- range $civs }}
{{- range .Sites }}
{{ addSite . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}