{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
{{with $b.Poll}} {{end}} {{range $b.Posts}} {{end}}
{{if $b.CanPost}}New Topic   Post Reply{{else}}{{$b.Root.Subject}}{{end}}
Poll: {{$b.Root.Subject}}
{{if or .Voted (not $me)}} {{range .Answers}}{{end}}
{{.Text}}{{if .Mine}} «{{end}}{{.Count}} votes ({{.Pct}}%)

Total votes: {{.Total}}{{if not $me}} | Log in to vote{{end}}

{{end}} {{if $me}}
{{range .Answers}}{{end}}
{{end}}
{{if .Author}}{{.M.From}}{{if .Author.Sysop}} {{end}}{{else}}{{.M.From}}{{end}}{{template "flag" .}}
{{template "avatar" (av .M.From "large")}} {{if .Author}}

{{if .Author.Sysop}}Administrator{{else if .Author.Locked}}BANNED{{else}}Member{{end}} {{else if .Where}}
Visitor from {{.Where}}{{end}}
{{if $b.CanPost}}quote{{end}} {{if .Author}}profile{{end}} {{if .CanLike}}
{{end}} {{if .CanDelete}}
{{end}}

{{body .M.Body}}
{{if .Likes}}{{end}}

{{if .Author}}Total Posts: {{num .Author.Posts}} | Joined {{shortdate .Author.Created}} | {{end}}Posted on: {{shortdate .M.Created}} {{clock .M.Created}}{{if and .M.To (ne .M.To "All")}} | To: {{.M.To}}{{end}} | #{{.Num}}
{{if $b.CanPost}}New Topic   Post Reply{{else}} {{end}}
{{if $b.CanPost}}
Post a reply
Your reply
Quote with > at the start of a line. Links are made links.
{{if $b.QuoteID}}{{end}} {{if $b.Aliases}}
{{end}}
{{else if not .User}}
» You must be logged in to reply. log in{{if .Register}} | Register{{end}}
{{end}} {{template "foot" .}}{{end}}