{{define "title"}} {{if .EditCommentID}} Edit Comment {{else if .Thread}} Reply to Thread {{else}} New Forum Post {{end}} {{end}} {{define "content"}}
{{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:

{{if and .CommentPhoto (HasSuffix .CommentPhoto.Filename ".mp4")}} {{else}} {{end}}
{{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}}