{{define "uploadinfo" -}}
File: {{$.post.Filename}} - ({{formatFilesize $.post.Filesize}}{{if and (gt $.post.UploadHeight 0) (gt $.post.UploadWidth 0)}}, {{$.post.UploadWidth}}x{{$.post.UploadHeight}}{{end}}, {{.post.OriginalFilename}})
{{- end -}} {{define "nameline"}} No. {{.post.ID}} {{- if $.thread.Locked}}Thread locked{{end -}} {{- if $.thread.Stickied}}Sticky{{end -}} {{- if $.thread.Cyclic}}Cyclic thread{{end -}} {{if $.is_board_page -}} [View] {{end}}
{{- end -}} {{- if $.post.IsTopPost -}}
{{- else -}}
{{- end -}} {{if not $.post.IsTopPost}}{{template "nameline" .}}{{end -}} {{- if eq $.post.Filename "deleted" -}}
File removed
{{- else if ne $.post.Filename "" -}} {{- template "uploadinfo" . -}} {{.post.UploadPath}} {{- end -}} {{- if $.post.IsTopPost}}{{template "nameline" .}}{{end -}}
{{.post.Message}}
{{if not $.post.IsTopPost}} {{if not $.post.IsTopPost}}
{{end}}{{end}}