this repo has no description
1{{ define "title" }}issues &middot; {{ .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-stretch gap-4"> 12 <form class="flex flex-1 relative" method="GET"> 13 <input type="hidden" name="state" value="{{ if .FilteringByOpen }}open{{ else }}closed{{ end }}"> 14 <div class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none"> 15 {{ i "search" "w-4 h-4" }} 16 </div> 17 <input class="flex-1 p-1 pl-10 pr-10 peer" type="text" name="q" value="{{ .FilterQuery }}" placeholder=" "> 18 <a 19 href="?state={{ if .FilteringByOpen }}open{{ else }}closed{{ end }}" 20 class="absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 hidden peer-[:not(:placeholder-shown)]:block" 21 > 22 {{ i "x" "w-4 h-4" }} 23 </a> 24 </form> 25 <a 26 href="/{{ .RepoInfo.FullName }}/issues/new" 27 class="btn-create text-sm flex items-center justify-center gap-2 no-underline hover:no-underline hover:text-white" 28 > 29 {{ i "circle-plus" "w-4 h-4" }} 30 <span>new</span> 31 </a> 32 </div> 33 <div class="mt-2 ml-2 flex gap-4 text-xs"> 34 <a 35 href="?state=open" 36 class="flex items-center gap-2 {{ if .FilteringByOpen }}font-bold {{ else }}text-gray-500 dark:text-gray-400{{ end }}" 37 > 38 {{ i "circle-dot" "w-4 h-4" }} 39 <span>{{ .RepoInfo.Stats.IssueCount.Open }} open</span> 40 </a> 41 <a 42 href="?state=closed" 43 class="flex items-center gap-2 {{ if not .FilteringByOpen }}font-bold {{ else }}text-gray-500 dark:text-gray-400{{ end }}" 44 > 45 {{ i "ban" "w-4 h-4" }} 46 <span>{{ .RepoInfo.Stats.IssueCount.Closed }} closed</span> 47 </a> 48 </div> 49 <div class="error" id="issues"></div> 50{{ end }} 51 52{{ define "repoAfter" }} 53 <div class="mt-2"> 54 {{ template "repo/issues/fragments/issueListing" (dict "Issues" .Issues "RepoPrefix" .RepoInfo.FullName "LabelDefs" .LabelDefs) }} 55 </div> 56 {{ block "pagination" . }} {{ end }} 57{{ end }} 58 59{{ define "pagination" }} 60<div class="flex justify-end mt-4 gap-2"> 61 {{ $currentState := "closed" }} 62 {{ if .FilteringByOpen }} 63 {{ $currentState = "open" }} 64 {{ end }} 65 66 {{ if gt .Page.Offset 0 }} 67 {{ $prev := .Page.Previous }} 68 <a 69 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700" 70 hx-boost="true" 71 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&q={{ .FilterQuery }}&offset={{ $prev.Offset }}&limit={{ $prev.Limit }}" 72 > 73 {{ i "chevron-left" "w-4 h-4" }} 74 previous 75 </a> 76 {{ else }} 77 <div></div> 78 {{ end }} 79 80 {{ if eq (len .Issues) .Page.Limit }} 81 {{ $next := .Page.Next }} 82 <a 83 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700" 84 hx-boost="true" 85 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&q={{ .FilterQuery }}&offset={{ $next.Offset }}&limit={{ $next.Limit }}" 86 > 87 next 88 {{ i "chevron-right" "w-4 h-4" }} 89 </a> 90 {{ end }} 91</div> 92{{ end }}