File:
{ post.MediaPath }
({ util.FormatBytes(imgInfo.Size) },
{ strconv.Itoa(imgInfo.Width) }x{ strconv.Itoa(imgInfo.Height) })
@templ.Raw(util.EnrichPost(post.Body))
}
templ PostReply(post database.Post) {
if post.MediaPath != "" {
{{ imgInfo := util.GetPostImageInfo(post.MediaPath) }}
File:
{ post.MediaPath }
({ util.FormatBytes(imgInfo.Size) },
{ strconv.Itoa(imgInfo.Width) }x{ strconv.Itoa(imgInfo.Height) })
}
@templ.Raw(util.EnrichPost(post.Body))
}
templ Posts(posts []database.Post, thread database.Thread) {
@PostOriginal(posts[0], &thread)