{{define "topic.html"}}{{template "head" .}} {{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
|
{{$b.Root.Subject}} {{if or .Voted (not $me)}}
Total Votes : {{.Total}}{{if not $me}} (Log in to vote){{end}} {{end}} {{if $me}} {{end}} | |||||
| Author | Message | ||||
|---|---|---|---|---|---|
| {{.M.From}}{{template "flag" .}} {{if .Author}}{{if .Author.Sysop}}Site Admin{{else}}{{group .Author}}{{end}} {{template "avatar" (av .M.From "large")}} Joined: {{subdate .Author.Created}} Posts: {{num .Author.Posts}}{{if .Author.Location}} Location: {{.Author.Location}}{{end}}{{else}}{{template "avatar" (av .M.From "large")}}{{if .Where}} Location: {{.Where}}{{end}}{{end}} |
Posted: {{subtime .M.Created}} Post subject: {{.M.Subject}}{{if and .M.To (ne .M.To "All")}} To: {{.M.To}}{{end}}
{{if $b.CanPost}}quote{{end}}
{{if .CanDelete}}{{end}}
{{body .M.Body}}
{{if .Likes}}_________________ |
||||
| {{if .Author}}profile{{end}} {{if .CanLike}}{{end}} | |||||
| {{plural $b.Count "post" "posts"}} in this topic | |||||
Log in to reply to this topic.
{{end}} {{template "foot" .}}{{end}}