{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
{{template "pages" $b.Pages}}
{{if $b.CanPost}}Add Reply New Topic{{end}}
{{$b.Root.Subject}}, started by {{$b.Root.From}}
{{with $b.Poll}}
Poll
{{if or .Voted (not $me)}} {{range .Answers}}{{end}}
{{.Text}}{{if .Mine}} *{{end}}[ {{.Count}} ][{{.Pct}}%]

Total Votes: {{.Total}}{{if not $me}} · Log in to vote{{end}}

{{end}} {{if $me}}
{{range .Answers}}{{end}}
{{end}}
{{end}} {{range $b.Posts}}{{$css := "post1"}}{{if not (odd .Num)}}{{$css = "post2"}}{{end}}
{{if .Author}}{{.M.From}}{{else}}{{.M.From}}{{end}}{{template "flag" .}} Posted on {{longdate .M.Created}}{{if and .M.To (ne .M.To "All")}}, to {{.M.To}}{{end}} {{if .CanDelete}}
{{end}} {{if .CanLike}}
{{end}} {{if $b.CanPost}}“ Quote{{end}}
{{template "avatar" (av .M.From "large")}}

{{if .Author}} {{if .Author.Sysop}}Sysop{{else}}Member{{end}}


Group: {{group .Author}}
Posts: {{num .Author.Posts}}
Member No.: {{.Author.ID}}
Joined: {{date .Author.Created}}{{if .Author.Location}}
From: {{.Author.Location}}{{end}} {{else}} {{if .Where}}Group: Visitors
From: {{.Where}}{{else}}Group: Members{{end}} {{end}}
{{body .M.Body}}
{{if .Likes}}
-----
♥ {{plural .Likes "member likes" "members like"}} this post
{{end}}
▲
{{end}}
« Back to {{$b.Area.Name}} »
{{template "pages" $b.Pages}}
{{if $b.CanPost}}Add Reply New Topic{{end}}
{{if $b.CanPost}}
Fast Reply
{{if $b.QuoteID}}{{end}} {{if $b.Aliases}}{{end}}
Your reply
Options
{{else if not .User}}
You need to be a member to reply. Log in{{if .Register}} or register{{end}}.
{{end}} {{template "foot" .}}{{end}}