this repo has no description
1{{ define "title" }}{{ .Issue.Title }} · issue #{{ .Issue.IssueId }} · {{ .RepoInfo.FullName }}{{ end }}
2
3
4{{ define "extrameta" }}
5 {{ $title := printf "%s · issue #%d · %s" .Issue.Title .Issue.IssueId .RepoInfo.FullName }}
6 {{ $url := printf "https://tangled.sh/%s/issues/%d" .RepoInfo.FullName .Issue.IssueId }}
7
8 {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }}
9{{ end }}
10
11{{ define "repoContent" }}
12 <header class="pb-2">
13 <h1 class="text-2xl">
14 {{ .Issue.Title | description }}
15 <span class="text-gray-500 dark:text-gray-400">#{{ .Issue.IssueId }}</span>
16 </h1>
17 </header>
18
19 {{ $bgColor := "bg-gray-800 dark:bg-gray-700" }}
20 {{ $icon := "ban" }}
21 {{ if eq .State "open" }}
22 {{ $bgColor = "bg-green-600 dark:bg-green-700" }}
23 {{ $icon = "circle-dot" }}
24 {{ end }}
25
26 <section class="mt-2">
27 <div class="inline-flex items-center gap-2">
28 <div id="state"
29 class="inline-flex items-center rounded px-3 py-1 {{ $bgColor }}">
30 {{ i $icon "w-4 h-4 mr-1.5 text-white" }}
31 <span class="text-white">{{ .State }}</span>
32 </div>
33 <span class="text-gray-500 dark:text-gray-400 text-sm flex flex-wrap items-center gap-1">
34 opened by
35 {{ template "user/fragments/picHandleLink" .Issue.Did }}
36 <span class="select-none before:content-['\00B7']"></span>
37 {{ template "repo/fragments/time" .Issue.Created }}
38 </span>
39 </div>
40
41 {{ if .Issue.Body }}
42 <article id="body" class="mt-4 prose dark:prose-invert">
43 {{ .Issue.Body | markdown }}
44 </article>
45 {{ end }}
46
47 <div class="flex items-center gap-2 mt-2">
48 {{ template "repo/fragments/reactionsPopUp" .OrderedReactionKinds }}
49 {{ range $kind := .OrderedReactionKinds }}
50 {{
51 template "repo/fragments/reaction"
52 (dict
53 "Kind" $kind
54 "Count" (index $.Reactions $kind)
55 "IsReacted" (index $.UserReacted $kind)
56 "ThreadAt" $.Issue.AtUri)
57 }}
58 {{ end }}
59 </div>
60 </section>
61{{ end }}
62
63{{ define "repoAfter" }}
64 <div class="flex flex-col gap-4 mt-4">
65 {{
66 template "repo/issues/fragments/commentList"
67 (dict
68 "RepoInfo" $.RepoInfo
69 "LoggedInUser" $.LoggedInUser
70 "Issue" $.Issue
71 "CommentList" $.Issue.CommentList)
72 }}
73
74 {{ template "repo/issues/fragments/newComment" . }}
75 <div>
76{{ end }}
77