{{template "layout.html" .}}

{{define "title"}}{{ title .Name }}{{end}}

{{define "content"}}

{{ if world.MapReady }}
<div class="object-map">
    <div id="map" style="width: 300px; height: 300px"></div>
</div>
{{initMap}}
{{ addSite .SiteId false }}
{{- end }}

<h3>{{ title .Name }}</h3>
{{ .Type_ }} in {{ site .SiteId }}

<h5 class="mt-3">Events</h5>
{{ template "events.html" events . }}

<p>{{ json . }}</p>
{{- end }}