dorfylegends/backend/templates/collection.html

24 lines
603 B
HTML
Raw Permalink Normal View History

2022-05-03 15:59:47 +03:00
{{template "layout.html" .}}
{{define "title"}}{{ title (strip (collection .Id)) }}{{end}}
{{define "content"}}
2022-05-11 10:45:17 +03:00
{{ if world.MapReady }}
<div class="object-map">
<div id="map" style="width: 300px; height: 300px"></div>
</div>
{{initMap}}
{{ addCollection .Id }}
{{- end }}
2022-05-03 15:59:47 +03:00
<h3>{{ html (capitalize (string (collection .Id))) }}</h3>
{{- if eq .Type "occasion" }}{{- with getOccasion .Details.CivId .Details.OccasionId }}{{- if ne .Event -1 }}
<p>A festival commemorating {{ story .Event }}</p>
{{- end }}{{- end}}{{- end}}
{{ template "collectionDetail.html" . }}
<p>{{ json . }}</p>
{{- end }}