dorfylegends/backend/templates/artifact.html
Robert Janetzko edc4fe9b75 detail pages
2022-05-02 15:22:57 +00:00

30 lines
758 B
HTML

{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
<h1>{{ title .Name }}</h1>
{{if ne .ItemDescription ""}}<p><i>{{ .ItemDescription }}</i></p>{{end}}
<p>
{{- if or (ne .ItemType "") (ne .ItemSubtype "")}}
{{.Mat}} {{if ne .ItemSubtype ""}}{{.ItemSubtype}}{{else}}{{.ItemType}}{{end}}
{{- end}}
{{- if gt .PageCount 0 }}
with {{ .PageCount }} pages
{{- end}}
{{- if ne .Writing -1 }}
containing {{ writtenContent .Writing}}
{{- end}}
{{- if ne .SiteId -1 }}
stored in {{ site .SiteId}}
{{- end}}
{{- if ne .HolderHfid -1 }}
owned by {{ hf .HolderHfid}}
{{- end}}
</p>
<h3>Events</h3>
{{ template "events.html" events . }}
<p>{{ json . }}</p>
{{- end }}