{{define "comments"}} {{if .CommentsAllowed}}

{{t "comments.title"}}

{{if .IsAuthenticated}}
{{t "comments.markdown_supported"}}
{{else}}

{{t "comments.login_required"}}

{{end}}
{{if .Comments}} {{range .Comments}}
{{.Author}} {{.FormattedTime}} {{if eq $.UserRole "admin"}} {{end}}
{{.RenderedHTML}}
{{end}} {{else}}

{{t "comments.no_comments"}}

{{end}}
{{end}} {{end}}