{{define "title"}} {{if .EditCommentID}} Edit Comment {{else if .Thread}} Reply to Thread {{else}} New Forum Post {{end}} {{end}} {{define "content"}}

{{if .EditCommentID}} Edit comment on: {{or .Thread.Title "Untitled Thread"}} {{else if .Thread}} Reply to: {{or .Thread.Title "Untitled Thread"}} {{else}} Post to: {{.Forum.Title}} {{end}}

/f/{{.Forum.Fragment}}

{{if and (eq .Request.Method "POST") (ne .Message "")}}
{{ToMarkdown .Message}}
{{end}}
{{InputCSRF}} {{if not .Thread}}

Required.

{{end}}

Markdown formatting supported.

{{if and (not .EditCommentID) (not .Thread)}}
Poll expires:
{{end}} {{if .Forum.PermitPhotos}}

Selected image:

{{end}}
{{if or (not .Thread) .EditThreadSettings}}
{{if or .CurrentUser.IsAdmin (and .Forum (eq .Forum.OwnerID .CurrentUser.ID))}}
{{end}} {{if or .CurrentUser.Explicit .IsExplicit}}
{{end}} {{if .CurrentUser.IsAdmin}}
{{end}}
{{end}}
{{end}} {{define "scripts"}} {{if .Forum.PermitPhotos}} {{end}} {{end}}