{{ template "base.html" . }} {{ define "content" }}

{{ .Thread.Title }}

{{ with .MainPost }}
{{ .Author.Name }}
{{ if .Author.IsStaff }}
{{ end }}
{{ timehtml (absoluteshortdate .PostDate) .PostDate }}
{{ if and $.User $.Project.HasBlog }}
{{ if or (eq .Author.ID $.User.ID) $.User.IsStaff }}     {{ end }} {{ if or (not $.Thread.Locked) $.User.IsStaff }} {{ if $.Thread.Locked }} WARNING: locked thread - use power responsibly! {{ end }}   {{ end }}
{{ end }}
{{ end }}
{{ .MainPost.Content }}
{{ if not .IsProjectPage }} {{ template "newsletter_signup.html" . }} {{ end }}
{{ range .Comments }}
{{ .Author.Username }}
{{ if .Author.IsStaff }}
{{ end }}
{{ if and .Author.Name (ne .Author.Name .Author.Username) }} {{ .Author.Name }}, {{ end }} {{ timehtml (relativedate .PostDate) .PostDate }} {{ if .Editor }} Edited by {{ coalesce .Editor.Name .Editor.Username }} on {{ timehtml (absolutedate .EditDate) .EditDate }} {{ with .EditReason }} Reason: {{ . }} {{ end }} {{ end }}
{{ if and $.User $.Project.HasBlog }}
{{ if or (eq .Author.ID $.User.ID) $.User.IsStaff }}     {{ end }} {{ if or (not $.Thread.Locked) $.User.IsStaff }} {{ if $.Thread.Locked }} WARNING: locked thread - use power responsibly! {{ end }}   {{ end }} #{{ .ID }}
{{ end }}
{{ .Content }}
{{ end }}
{{ if .Project.HasBlog }} {{ if $.User }} + Add Comment {{ else }} Log in to comment {{ end }} {{ end }}
{{ end }}