{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
{{$b.Root.Subject}}
{{template "pages" $b.Pages}} 
{{if $b.CanPost}}newtopic postreply{{end}}   {{template "nav" .}}
{{with $b.Poll}} {{end}} {{range $b.Posts}}{{$row := "row1"}}{{if not (odd .Num)}}{{$row = "row2"}}{{end}} {{end}}
Back to {{$b.Area.Name}} :: Post a reply  

{{$b.Root.Subject}}

{{if or .Voted (not $me)}} {{range .Answers}}{{end}}
{{.Text}} {{.Pct}}% [ {{.Count}} ]

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

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

Joined: {{subdate .Author.Created}}
Posts: {{num .Author.Posts}}{{if .Author.Location}}
Location: {{.Author.Location}}{{end}}{{else}}{{template "avatar" (av .M.From "large")}}{{if .Where}}

Location: {{.Where}}{{end}}{{end}}
Posted: {{subtime .M.Created}}    Post subject: {{.M.Subject}}{{if and .M.To (ne .M.To "All")}}   To: {{.M.To}}{{end}} {{if $b.CanPost}}quote{{end}} {{if .CanDelete}}
{{end}}

{{body .M.Body}}
{{if .Likes}}{{end}}
Back to top {{if .Author}}profile{{end}} {{if .CanLike}}
{{end}}
{{plural $b.Count "post" "posts"}} in this topic
{{if $b.CanPost}}newtopic postreply{{end}}   {{template "nav" .}}
All times are server time
{{template "pages" $b.Pages}}
{{template "pagenum" $b.Pages}}
{{if $b.CanPost}}
{{if $b.QuoteID}}{{end}}
Post a reply
Message body
Quote with > at the start of a line. Links are made links.
{{if $b.Aliases}}
{{end}}
{{else if not .User}}

Log in to reply to this topic.

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