{{define "forum_thread"}}
← 返回共鸣板
{{if eq .Data.Thread.Sticky 1}}置顶{{end}} {{if eq .Data.Thread.Status "hot"}}在聊{{else if eq .Data.Thread.Status "fire"}}争议{{else}}沉底{{end}} {{if ne .Data.Thread.Type "text"}} {{if eq .Data.Thread.Type "poll"}}{{ico "check"}} 投票 {{else if eq .Data.Thread.Type "gallery"}}{{ico "image"}} 多图 {{else if eq .Data.Thread.Type "debate"}}{{ico "sliders"}} 辩论 {{else if eq .Data.Thread.Type "product"}}{{ico "bag"}} 商品 {{else if eq .Data.Thread.Type "longform"}}{{ico "file"}} 长文 {{else if eq .Data.Thread.Type "video"}}{{ico "camera"}} 视频 {{end}} {{end}} 回声指数 {{.Data.Thread.EchoIndex}} {{if gt .Data.Thread.DeepReplies 0}}{{.Data.Thread.DeepReplies}} 条深度回声{{end}}

{{.Data.Thread.Title}}

{{.Data.Thread.SectionName}} {{.Data.Thread.Author}} {{dateTime .Data.Thread.CreatedAt}} {{.Data.Thread.Views}} 次听 {{template "fav_button" dict "VD" . "Type" "forum" "Key" (printf "%d" .Data.Thread.ID) "Title" .Data.Thread.Title "URL" (printf "/forum/thread/%d" .Data.Thread.ID)}}
{{if eq .Data.Thread.Type "longform"}}
{{.Data.Body}}
{{else}}
{{.Data.Body}}
{{end}}
{{/* 类型区块:投票 / 多图 / 商品 / 辩论 */}} {{if or (eq .Data.Thread.Type "poll") (eq .Data.Thread.Type "gallery") (eq .Data.Thread.Type "product") (eq .Data.Thread.Type "debate")}} {{template "post_type_blocks" dict "Type" .Data.Thread.Type "Config" .Data.Config "Poll" .Data.Poll "Debate" .Data.Debate "PollURL" (printf "/forum/thread/%d/vote" .Data.Thread.ID) "DebateURL" (printf "/forum/thread/%d/debate" .Data.Thread.ID) }} {{end}} {{/* 视频双布局:可内嵌 → 左视频右评论 / 上视频下评论;不可内嵌 → 跳转卡 + 常规评论区 */}} {{if eq .Data.Thread.Type "video"}} {{if .Data.Config.Extracted}}
播放布局
{{template "post_type_blocks" dict "Type" "video" "Config" .Data.Config}}
回声({{len .Data.Replies}})
{{template "echo_replies" dict "Replies" .Data.Replies "Thread" .Data.Thread "CurrentUser" .Data.CurrentUser "CSRF" .CSRF}}
{{else}} {{template "post_type_blocks" dict "Type" "video" "Config" .Data.Config}} {{template "echo_replies" dict "Replies" .Data.Replies "Thread" .Data.Thread "CurrentUser" .Data.CurrentUser "CSRF" .CSRF}} {{end}} {{else}} {{template "echo_replies" dict "Replies" .Data.Replies "Thread" .Data.Thread "CurrentUser" .Data.CurrentUser "CSRF" .CSRF}} {{end}}
{{end}}