dorfylegends/backend/templates/worldconstruction.html

34 lines
604 B
HTML
Raw Normal View History

2022-05-03 22:39:00 +03:00
{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
2022-05-10 10:51:04 +03:00
{{ if world.MapReady }}
2022-05-08 10:35:57 +03:00
<div class="object-map">
<div id="map" style="width: 300px; height: 300px"></div>
</div>
{{initMap}}
{{ addWorldConstruction .Id }}
2022-05-11 10:45:17 +03:00
{{- range .Parts }}
{{ addWorldConstruction . }}
{{- end }}
2022-05-10 10:51:04 +03:00
{{- end }}
2022-05-08 10:35:57 +03:00
2022-05-08 15:10:59 +03:00
<h3>{{ title .Name }}</h3>
<p>{{ .Type }}</p>
2022-05-05 13:55:33 +03:00
{{- if gt (len .Parts) 0 }}
<h5>Parts</h5>
<ul>
{{- range .Parts }}
<li>{{ worldConstruction . }}</li>
{{- end }}
</ul>
{{- end }}
<h5>Events</h5>
2022-05-03 22:39:00 +03:00
{{ template "events.html" events . }}
<p>{{ json . }}</p>
{{- end }}