{{ if .State.Session }}
{{ end }}
{{if or (lt .P.Counts.Score -5) .P.Comment.Deleted }} [+] {{ else }} [-] {{ end }} {{fullname .P.Creator}} {{.P.Counts.Score}} points {{ humanize .P.Comment.Published.Time }} {{- if gt .P.Comment.Updated.Time.Unix .P.Comment.Published.Time.Unix -}} * (last edited {{ humanize .P.Comment.Updated.Time }}) {{ end }}
{{ if eq .Op "edit" }}
{{ else }}
{{if .P.Comment.Deleted}} [removed] {{else}}
{{ markdown .State.Host .P.Comment.Content }}
{{end}} {{ if eq .Op "source" }}
{{end}} {{ end }}
  • permalink
  • {{ if ne .Op "source"}}
  • source
  • {{ else }}
  • hide source
  • {{ end }} {{ if .State.Session }} {{ if and (eq .P.Comment.CreatorID .State.Session.UserID) (ne .Op "edit") }}
  • edit
  • {{ end }}
  • reply
  • {{ end }} {{ if and .ParentID .State.CommentID }}
  • parent
  • {{ end }} {{ if and .ParentID (or .State.Activities .State.Query) }}
  • context
  • {{ end }} {{ if gt .ChildCount 0 }}
  • hideshow {{ .ChildCount }} child comments
  • {{ end }}
{{ if and (eq .State.Op "reply") (eq .State.CommentID .P.Comment.ID)}}
{{ end}} {{ range $ci, $child := .C }}{{ template "comment.html" $child }}{{end}} {{ if and (ne .P.Counts.ChildCount .ChildCount) (not .State.Activities) (not .State.Query) }}
load more comments ({{ sub .P.Counts.ChildCount .ChildCount}} replies)
{{end}}