{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}} {{template "crumbs" .}}
{{template "pages" $b.Pages}} {{if $b.CanPost}}Reply{{end}}
{{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}}%)
Total votes: {{.Total}}{{if not $me}} · Login to vote{{end}}
{{if .Voted}}Change your vote{{else}}Cast your vote{{end}}: {{range .Answers}}{{end}}
{{end}}
Author Topic: {{$b.Root.Subject}}  ({{plural $b.Count "post" "posts"}})
{{range $b.Posts}}
{{if .Author}}{{.M.From}}{{else}}{{.M.From}}{{end}}{{template "flag" .}}
{{if .Author}}
{{template "yyrank" .Author}}
{{template "yystars" .Author}}
{{template "avatar" (av .M.From "large")}}
{{if .Author.Location}}
{{.Author.Location}}
{{end}}
Posts: {{num .Author.Posts}}
{{else}}
Guest
{{if .Where}}
{{.Where}}
{{end}}{{end}}
{{if ne .Num 1}}Re: {{end}}{{$b.Root.Subject}}
« {{if ne .Num 1}}Reply #{{add .Num -1}} {{end}}on: {{template "yydate" .M.Created}} »
{{if $b.CanPost}}Quote{{end}} {{if .CanLike}} |
{{end}} {{if .CanDelete}} |
{{end}}

{{body .M.Body}}
{{if .Likes}}« {{plural .Likes "member likes" "members like"}} this post »{{end}} Logged
{{end}}
{{template "pages" $b.Pages}} {{if $b.CanPost}}Reply{{end}}
{{if $b.CanPost}}
{{if $b.QuoteID}}{{end}} {{if $b.Aliases}}{{end}}
Post reply
Subject:Re: {{$b.Root.Subject}}
Message:
Quote with > at the start of a line.
Post as:
{{else if not .User}}

Please login to reply to this topic.

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