2022-04-22 18:45:10 +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}}
|
|
|
|
{{ addRegion .Id }}
|
|
|
|
<script>map.addLayer(regionsLayer);</script>
|
2022-05-10 10:51:04 +03:00
|
|
|
{{- end }}
|
2022-05-08 10:35:57 +03:00
|
|
|
|
2022-05-08 15:10:43 +03:00
|
|
|
<h3>{{ title .Name }}</h3>
|
|
|
|
<p>{{ .Type }}</p>
|
|
|
|
|
2022-05-06 17:17:50 +03:00
|
|
|
{{- if ne .ForceId -1 -}}
|
|
|
|
<dl class="row">
|
|
|
|
<dt class="col-2 col-lg-1">Force</dt>
|
|
|
|
<dd class="col-10 col-lg-11">{{ hf .ForceId }}</dd>
|
|
|
|
</dl>
|
|
|
|
{{- end -}}
|
2022-04-22 18:45:10 +03:00
|
|
|
|
2022-05-06 17:17:50 +03:00
|
|
|
<h5>Events</h5>
|
2022-04-22 18:45:10 +03:00
|
|
|
{{ template "events.html" events . }}
|
|
|
|
|
|
|
|
<p>{{ json . }}</p>
|
|
|
|
{{- end }}
|