{{define "content"}} {{$m := .Data.Mind}}{{$d := .Data.Detail}}{{$mm := $d.Memory}}

{{$m.DisplayName}} › memory › {{$mm.Kind}}

{{$mm.Kind}} {{$mm.Epistemic}} {{if ne $mm.Status "active"}}{{$mm.Status}}{{end}}

{{$mm.Content}}

Provenance

Source
{{$mm.Source}} · trust {{$mm.Trust}} (credibility {{conf $mm.Credibility}})
Occurred
{{$mm.OccurredAt.Local.Format "2006-01-02 15:04:05"}}
Encoded
{{$mm.CreatedAt.Local.Format "2006-01-02 15:04:05"}}
{{if $d.Origin}}
Origin event
{{$d.Origin.Type}} {{$d.Origin.Summary}}
{{end}} {{if $mm.Supersedes}}
Supersedes
{{$mm.Supersedes}}
{{end}} {{range $k, $v := $mm.Detail}}{{if $v}}
{{$k}}
{{$v}}
{{end}}{{end}}

Events referencing this memory {{len $d.Events}}

{{if $d.Events}}{{range $d.Events}}{{end}}
{{.OccurredAt.Local.Format "01-02 15:04:05"}}{{.Type}}{{.Summary}}
{{else}}

None yet.

{{end}}

Relationships {{len $d.Relationships}}

{{if $d.Relationships}}{{range $d.Relationships}}{{end}}
{{if eq .Direction "out"}}this {{.Relation}}{{else}}{{.Relation}} this{{end}}{{trunc .Other.Content 120}}{{conf .Confidence}} · {{.Source}}
{{else}}

None.

{{end}} {{if .Principal.User.Role.AtLeast "operator"}}
{{end}}

Strength

Confidence
{{conf $mm.Confidence}}
Importance
{{conf $mm.Importance}}
Activation
{{conf $mm.Activation}}
Retrieved
{{$mm.RetrievalCount}}× {{if $mm.LastRetrievedAt}}· last {{ago $mm.LastRetrievedAt}}{{end}}
{{if $mm.Valence}}
Valence
{{conf (deref $mm.Valence)}}
{{end}}
{{if and (.Principal.User.Role.AtLeast "operator") (eq $mm.Status "active")}}

Correct

{{end}}
ID
{{$mm.ID}}
{{end}}