{{ define "repo/issues/fragments/issueComment" }} {{ with .Comment }}
{{ $owner := index $.DidHandleMap .OwnerDid }} {{ template "user/fragments/picHandleLink" $owner }} {{ $isIssueAuthor := eq .OwnerDid $.Issue.OwnerDid }} {{ if $isIssueAuthor }} author {{ end }} {{ if .Deleted }} deleted {{ template "repo/fragments/time" .Deleted }} {{ else if .Edited }} edited {{ template "repo/fragments/time" .Edited }} {{ else }} {{ template "repo/fragments/time" .Created }} {{ end }} {{ $isCommentOwner := and $.LoggedInUser (eq $.LoggedInUser.Did .OwnerDid) }} {{ if and $isCommentOwner (not .Deleted) }} {{ end }}
{{ if not .Deleted }}
{{ .Body | markdown }}
{{ end }}
{{ end }} {{ end }}