this repo has no description
1{{ define "title" }}issues · {{ .RepoInfo.FullName }}{{ end }}
2
3{{ define "extrameta" }}
4 {{ $title := "issues"}}
5 {{ $url := printf "https://tangled.org/%s/issues" .RepoInfo.FullName }}
6
7 {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }}
8{{ end }}
9
10{{ define "repoContent" }}
11<div class="flex justify-between items-center gap-4">
12 <div class="flex gap-4">
13 <a
14 href="?state=open"
15 class="flex items-center gap-2 {{ if .FilteringByOpen }}font-bold {{ else }}text-gray-500 dark:text-gray-400{{ end }}"
16 >
17 {{ i "circle-dot" "w-4 h-4" }}
18 <span>{{ .RepoInfo.Stats.IssueCount.Open }} open</span>
19 </a>
20 <a
21 href="?state=closed"
22 class="flex items-center gap-2 {{ if not .FilteringByOpen }}font-bold {{ else }}text-gray-500 dark:text-gray-400{{ end }}"
23 >
24 {{ i "ban" "w-4 h-4" }}
25 <span>{{ .RepoInfo.Stats.IssueCount.Closed }} closed</span>
26 </a>
27 </div>
28 <a
29 href="/{{ .RepoInfo.FullName }}/issues/new"
30 class="btn-create text-sm flex items-center justify-center gap-2 no-underline hover:no-underline hover:text-white"
31 >
32 {{ i "circle-plus" "w-4 h-4" }}
33 <span>new</span>
34 </a>
35</div>
36<div class="error" id="issues"></div>
37{{ end }}
38
39{{ define "repoAfter" }}
40 <div class="mt-2">
41 {{ template "repo/issues/fragments/issueListing" (dict "Issues" .Issues "RepoPrefix" .RepoInfo.FullName "LabelDefs" .LabelDefs) }}
42 </div>
43 {{ block "pagination" . }} {{ end }}
44{{ end }}
45
46{{ define "pagination" }}
47<div class="flex justify-end mt-4 gap-2">
48 {{ $currentState := "closed" }}
49 {{ if .FilteringByOpen }}
50 {{ $currentState = "open" }}
51 {{ end }}
52
53 {{ if gt .Page.Offset 0 }}
54 {{ $prev := .Page.Previous }}
55 <a
56 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700"
57 hx-boost="true"
58 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&offset={{ $prev.Offset }}&limit={{ $prev.Limit }}"
59 >
60 {{ i "chevron-left" "w-4 h-4" }}
61 previous
62 </a>
63 {{ else }}
64 <div></div>
65 {{ end }}
66
67 {{ if eq (len .Issues) .Page.Limit }}
68 {{ $next := .Page.Next }}
69 <a
70 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700"
71 hx-boost="true"
72 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&offset={{ $next.Offset }}&limit={{ $next.Limit }}"
73 >
74 next
75 {{ i "chevron-right" "w-4 h-4" }}
76 </a>
77 {{ end }}
78</div>
79{{ end }}