dorfylegends/backend/templates/index.html

34 lines
697 B
HTML
Raw Permalink Normal View History

2022-05-01 10:32:14 +03:00
{{template "layout.html" .}}
{{define "title"}}Legends Browser{{end}}
{{define "content"}}
2022-05-10 21:29:17 +03:00
{{ if world.MapReady }}
<div class="object-map">
{{- if ne world.Name "" -}}
<h3>{{world.Name}} - {{world.Altname}}</h3>
{{- end }}
<div id="map" style="width: 750px; height: 750px"></div>
</div>
{{initMap}}
{{- range $race, $civs := .Civilizations }}{{- range $civs }}{{- range .Sites }}
{{ addSite . true }}
{{- end }}{{- end }}{{- end }}
{{- end }}
2022-05-01 10:32:14 +03:00
<h3>Civilizations</h3>
<ul>
{{- range $race, $civs := .Civilizations }}
<li>{{ $race }}</li>
<ul>
{{- range $civs }}
<li>{{ entity .Id }}</li>
{{- end }}
</ul>
{{- end }}
</ul>
{{- end }}