this repo has no description
1{{ define "title" }}issues · {{ .RepoInfo.FullName }}{{ end }}
2
3{{ define "repoContent" }}
4 <div class="flex justify-between items-center">
5 <div class="error" id="issues"></div>
6 <a
7 href="/{{ .RepoInfo.FullName }}/issues/new"
8 class="btn flex items-center gap-2 no-underline"
9 >
10 <i data-lucide="square-plus" class="w-5 h-5"></i>
11 <span>new issue</span>
12 </a>
13 </div>
14{{ end }}
15
16{{ define "repoAfter" }}
17<div class="flex flex-col gap-2 mt-8">
18 {{ range .Issues }}
19 <div class="rounded drop-shadow-sm bg-white px-6 py-4">
20 <div class="pb-2">
21 <a
22 href="/{{ $.RepoInfo.FullName }}/issues/{{ .IssueId }}"
23 class="no-underline hover:underline"
24 >
25 {{ .Title }}
26 <span class="text-gray-400">#{{ .IssueId }}</span>
27 </a>
28 </div>
29 <p class="text-sm text-gray-400">
30 {{ $bgColor := "bg-gray-800" }}
31 {{ $icon := "ban" }}
32 {{ $state := "closed" }}
33 {{ if .Open }}
34 {{ $bgColor = "bg-green-600" }}
35 {{ $icon = "circle-dot" }}
36 {{ $state = "open" }}
37 {{ end }}
38
39 <span class="inline-flex items-center rounded px-2 py-[5px] {{ $bgColor }} text-sm">
40 <i data-lucide="{{ $icon }}" class="w-3 h-3 mr-1.5 text-white"></i>
41 <span class="text-white">{{ $state }}</span>
42 </span>
43
44 <span>
45 {{ $owner := index $.DidHandleMap .OwnerDid }}
46 <a href="/{{ $owner }}">{{ $owner }}</a>
47 </span>
48
49 <span class="before:content-['·']">
50 <time>
51 {{ .Created | timeFmt }}
52 </time>
53 </span>
54
55 <span class="before:content-['·']">
56 {{ $s := "s" }}
57 {{ if eq .Metadata.CommentCount 1 }}
58 {{ $s = "" }}
59 {{ end }}
60 <a href="/{{ $.RepoInfo.FullName }}/issues/{{ .IssueId }}" class="text-gray-400">{{ .Metadata.CommentCount }} comment{{$s}}</a>
61 </span>
62 </p>
63 </div>
64 {{ end }}
65</div>
66{{ end }}