{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}} {{if gt $b.Pages.Total 1}}
{{template "pages" $b.Pages}}
{{end}}
{{with $b.Poll}} {{end}} {{range $b.Posts}} {{end}}
Author{{$b.Root.Subject}}
Poll
{{if or .Voted (not $me)}} {{range .Answers}}{{end}}
{{.Text}}{{if .Mine}} *{{end}}{{.Pct}}% [ {{.Count}} ]

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

{{end}} {{if $me}}
{{range .Answers}}{{end}}
{{end}}
{{.M.From}}{{template "flag" .}} {{if .Author}}
{{if .Author.Sysop}}Administrator{{else}}{{group .Author}}{{end}}

Joined: {{monthyear .Author.Created}}
Posts: {{num .Author.Posts}}{{if .Author.Location}}
From: {{.Author.Location}}{{end}}
{{else if .Where}}
From: {{.Where}}{{end}}
Posted: {{stamp .M.Created}}{{if and .M.To (ne .M.To "All")}}   To: {{.M.To}}{{end}}   #{{.Num}}
{{body .M.Body}}
{{if .Likes}}{{end}}
{{if .Author}}profile{{end}} {{if .CanLike}}
{{end}} {{if .CanDelete}}
{{end}} {{if $b.CanPost}}quote{{end}}
{{if $b.CanPost}}New Topic Reply{{end}}
{{template "pages" $b.Pages}}
{{if $b.CanPost}}
Reply to: {{$b.Root.Subject}}
Message Body:

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. Login{{if .Register}} or Register{{end}}.

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