dorfylegends/backend/templates/artifact.html

30 lines
758 B
HTML
Raw Permalink Normal View History

2022-04-22 18:45:10 +03:00
{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
<h1>{{ title .Name }}</h1>
2022-05-02 18:22:57 +03:00
{{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>
2022-04-22 18:45:10 +03:00
<h3>Events</h3>
{{ template "events.html" events . }}
<p>{{ json . }}</p>
{{- end }}