{{ define "title" }}{{ .Issue.Title }} · issue #{{ .Issue.IssueId }} · {{ .RepoInfo.FullName }}{{ end }} {{ define "extrameta" }} {{ $title := printf "%s · issue #%d · %s" .Issue.Title .Issue.IssueId .RepoInfo.FullName }} {{ $url := printf "https://tangled.sh/%s/issues/%d" .RepoInfo.FullName .Issue.IssueId }} {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} {{ end }} {{ define "repoContent" }}

{{ .Issue.Title | description }} #{{ .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 {{ template "user/fragments/picHandleLink" .Issue.Did }} {{ template "repo/fragments/time" .Issue.Created }}
{{ if .Issue.Body }}
{{ .Issue.Body | markdown }}
{{ end }}
{{ template "repo/fragments/reactionsPopUp" .OrderedReactionKinds }} {{ range $kind := .OrderedReactionKinds }} {{ template "repo/fragments/reaction" (dict "Kind" $kind "Count" (index $.Reactions $kind) "IsReacted" (index $.UserReacted $kind) "ThreadAt" $.Issue.AtUri) }} {{ end }}
{{ end }} {{ define "repoAfter" }}
{{ template "repo/issues/fragments/commentList" (dict "RepoInfo" $.RepoInfo "LoggedInUser" $.LoggedInUser "Issue" $.Issue "CommentList" $.Issue.CommentList) }} {{ template "repo/issues/fragments/newComment" . }}
{{ end }}