{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
{{if $b.CanPost}}{{end}}
{{with $b.Poll}}

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

{{if or .Voted (not $me)}}
{{range $i, $a := .Answers}}
{{$a.Text}}
{{$a.Count}} ({{$a.Pct}}%)
{{end}}

Total Voters: {{.Total}}{{if not $me}} · Login to vote{{end}}

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

AuthorTopic: {{$b.Root.Subject}}  (Read {{plural $b.Count "post" "posts"}})

{{range $b.Posts}}

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

    {{if .Author}}
  • {{if .Author.Sysop}}Administrator{{else if ge .Author.Posts 100}}Full Member{{else if ge .Author.Posts 50}}Jr. Member{{else}}Newbie{{end}}
  • {{if .Author.Sysop}}★★★★★{{else if ge .Author.Posts 100}}★★★{{else if ge .Author.Posts 50}}★★{{else}}★{{end}}
  • {{template "avatar" (av .M.From "large")}}
  • Posts: {{num .Author.Posts}}
  • {{if .Author.Location}}
  • {{.Author.Location}}
  • {{end}}
  • {{else}}
  • Guest
  • {{if .Where}}
  • {{.Where}}
  • {{end}}{{end}}
{{.M.Subject}}
« {{if ne .Num 1}}Reply #{{add .Num -1}} on:{{else}}on:{{end}} {{smfdate .M.Created}} »
    {{if $b.CanPost}}
  • Quote
  • {{end}} {{if .CanLike}}
  • {{end}} {{if .CanDelete}}
  • {{end}}
{{body .M.Body}}
{{if .Likes}}{{end}}
{{end}}
{{if $b.CanPost}}{{end}}
{{template "linktree" .}} {{if $b.CanPost}}
{{if $b.QuoteID}}{{end}}

Quick Reply

Quote with > at the start of a line.

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

You must login to reply.

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