dorfylegends/backend/templates/mountain.html

26 lines
554 B
HTML
Raw Permalink Normal View History

2022-05-04 15:07:35 +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}}
{{ addMountain .Id false }}
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>{{ if .IsVolcano }}volcano{{else}}mountain{{end}}</p>
2022-05-06 17:17:50 +03:00
<dl class="row">
<dt class="col-2 col-lg-1">Height</dt>
<dd class="col-10 col-lg-11">{{ .Height }}</dd>
</dl>
2022-05-04 15:07:35 +03:00
2022-05-06 17:17:50 +03:00
<h5>Events</h5>
{{ template "events.html" events . }} <p>{{ json . }}</p>
2022-05-04 15:07:35 +03:00
{{- end }}