{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
{{if $b.CanPost}}Post Reply{{end}} {{template "pages" $b.Pages}}
{{with $b.Poll}} {{if or .Voted (not $me)}} {{range $i, $a := .Answers}} {{end}} {{end}} {{if $me}} {{end}}
Poll: {{$b.Root.Subject}}
{{$a.Text}}{{if $a.Mine}} (your vote){{end}}{{$a.Count}}{{$a.Pct}}%
Voters: {{.Total}}.{{if not $me}} You may not vote on this poll until you log in.{{end}}
{{if .Voted}}Change your vote{{else}}Poll options{{end}} {{range .Answers}}{{end}}
{{end}}
{{$b.Root.Subject}}« {{$b.Area.Name}}{{if $b.CanPost}} | New Thread{{end}}
{{range $b.Posts}}
{{vbdate .M.Created}}, {{vbtime .M.Created}} #{{.Num}}
{{if .Author}}{{.M.From}}{{else}}{{.M.From}}{{end}}{{template "flag" .}}
{{if .Author}}{{if .Author.Sysop}}Administrator{{else if ge .Author.Posts 100}}Senior Member{{else if ge .Author.Posts 30}}Member{{else}}Junior Member{{end}}{{else}}Guest{{end}}
{{template "avatar" (av .M.From "large")}}
{{if .Author}}
Join Date: {{monthyear .Author.Created}}
{{if .Author.Location}}
Location: {{.Author.Location}}
{{end}}
Posts: {{num .Author.Posts}}
{{else if .Where}}
Location: {{.Where}}
{{end}}
{{.M.Subject}}

{{body .M.Body}}
{{if .Likes}}{{end}}
{{if .Author}}Profile{{end}} {{if .CanLike}}
{{end}} {{if .CanDelete}}
{{end}} {{if $b.CanPost}}Quote{{end}}
{{end}}
{{if $b.CanPost}}Post Reply{{end}} {{template "pages" $b.Pages}}
{{if $b.CanPost}}
{{if $b.QuoteID}}{{end}}
Quick Reply
Message: Quote with > at the start of a line.
{{if $b.Aliases}}{{end}}
{{else if not .User}}

Log in to post a reply.

{{end}} {{template "foot" .}}{{end}}