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

{{$b.Root.Subject}}

{{if $b.CanPost}}Post Reply {{end}}
{{with $b.Poll}}

{{$b.Root.Subject}}

{{if or .Voted (not $me)}} {{range $i, $a := .Answers}}
{{$a.Text}}
{{$a.Count}} ({{$a.Pct}}%)
{{end}}
 
Total votes: {{.Total}}
{{end}} {{if $me}}
{{range .Answers}}
{{end}}
 
{{else}}
 
You must login to vote in this poll.
{{end}}
{{end}} {{range $b.Posts}}
{{template "avatar" (av .M.From "large")}}
{{if .Author}}{{.M.From}}{{else}}{{.M.From}}{{end}}{{template "flag" .}}
{{if .Author}}
{{if .Author.Sysop}}Site Admin{{else}}{{group .Author}}{{end}}
Posts: {{num .Author.Posts}}
Joined: {{subtime .Author.Created}}
{{if .Author.Location}}
Location: {{.Author.Location}}
{{end}} {{else if .Where}}
Location: {{.Where}}
{{end}}
{{.M.Subject}}
    {{if .CanDelete}}
  • {{end}} {{if .CanLike}}
  • {{end}} {{if $b.CanPost}}
  • Quote
  • {{end}}

Postby {{if .Author}}{{.M.From}}{{else}}{{.M.From}}{{end}} » {{subtime .M.Created}}{{if and .M.To (ne .M.To "All")}} • to {{.M.To}}{{end}}

{{body .M.Body}}
{{if .Likes}}
{{plural .Likes "member likes" "members like"}} this post
{{end}}

{{end}}
{{if $b.CanPost}}Post Reply {{end}}
{{if $b.CanPost}}
{{if $b.QuoteID}}{{end}}

Quick Reply

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

You must login{{if .Register}} or register{{end}} to reply to this topic.

{{end}}

Return to “{{$b.Area.Name}}”

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