{{ define "title" }}{{ .Issue.Title }} · issue #{{ .Issue.IssueId }} · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }} {{ .Issue.Title }} #{{ .Issue.IssueId }} {{ $bgColor := "bg-gray-800 dark:bg-gray-700" }} {{ $icon := "ban" }} {{ if eq .State "open" }} {{ $bgColor = "bg-green-600 dark:bg-green-700" }} {{ $icon = "circle-dot" }} {{ end }} {{ i $icon "w-4 h-4 mr-1.5 text-white" }} {{ .State }} opened by {{ $owner := didOrHandle .Issue.OwnerDid .IssueOwnerHandle }} {{ $owner }} {{ .Issue.Created | timeFmt }} {{ if .Issue.Body }} {{ .Issue.Body | markdown }} {{ end }} {{ end }} {{ define "repoAfter" }} {{ range $index, $comment := .Comments }} {{ if gt $index 0 }} {{ end }} {{ template "repo/issues/fragments/issueComment" (dict "RepoInfo" $.RepoInfo "LoggedInUser" $.LoggedInUser "DidHandleMap" $.DidHandleMap "Issue" $.Issue "Comment" .)}} {{ end }} {{ block "newComment" . }} {{ end }} {{ end }} {{ define "newComment" }} {{ if .LoggedInUser }}