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

{{$b.Root.Subject}}

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

{{if $b.CanPost}}Reply to this topic Start new topic{{end}} {{template "pages" $b.Pages}}
{{with $b.Poll}}

Poll

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

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

{{end}} {{if $me}}
{{range .Answers}}{{end}}
{{end}}
{{end}} {{range $b.Posts}}

{{if .Author}}{{.M.From}}{{else}}{{.M.From}}{{end}}{{template "flag" .}} #{{.Num}}

{{template "avatar" (av .M.From "large")}} {{if .Author}}

{{group .Author}}

{{else}}

{{if .Where}}Visitor from {{.Where}}{{else}}Members{{end}}

{{end}}

Posted {{when .M.Created}}{{if and .M.To (ne .M.To "All")}} · to {{.M.To}}{{end}}

{{body .M.Body}}
    {{if .CanLike}}
  • {{end}} {{if $b.CanPost}}
  • Quote
  • {{end}} {{if .CanDelete}}
  • {{end}}
{{end}}
{{template "pages" $b.Pages}}
{{if $b.CanPost}}

Reply to this topic

{{if $b.QuoteID}}{{end}}
{{if $b.Aliases}}{{end}}
{{else if not .User}}

You need to be a member to reply. Sign in{{if .Register}} or create an account{{end}}.

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