{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}

{{$b.Root.Subject}}

Started by {{$b.Root.From}} in {{$b.Area.Name}} · {{plural $b.Count "post" "posts"}}

{{if $b.CanPost}} Reply{{end}}
{{$b.Area.Name}}{{if $b.CanPost}}New Topic{{end}}
{{template "pages" $b.Pages}}
{{with $b.Poll}}

Poll: {{$b.Root.Subject}}

{{if or .Voted (not $me)}}

{{plural .Total "vote" "votes"}}{{if not $me}} · Log in to vote{{end}}

{{end}} {{if $me}}
{{range .Answers}}{{end}}
{{end}}
{{end}} {{if gt $b.Pages.Total 1}}
{{template "pages" $b.Pages}}
{{end}}
{{if $b.CanPost}}

Post a Reply

{{if $b.QuoteID}}{{end}}
{{template "avatar" (av $me.Name "mini")}}
{{if $b.Aliases}}{{else}}Quote with > at the start of a line.{{end}}
{{else if not .User}}

Please log in{{if .Register}} or sign up{{end}} to reply to this topic.

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