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 {{ $active := "closed" }} 12 {{ if .FilteringByOpen }} 13 {{ $active = "open" }} 14 {{ end }} 15 16 {{ $open := 17 (dict 18 "Key" "open" 19 "Value" "open" 20 "Icon" "circle-dot" 21 "Meta" (string .RepoInfo.Stats.IssueCount.Open)) }} 22 {{ $closed := 23 (dict 24 "Key" "closed" 25 "Value" "closed" 26 "Icon" "ban" 27 "Meta" (string .RepoInfo.Stats.IssueCount.Closed)) }} 28 {{ $values := list $open $closed }} 29 30 <div class="grid gap-2 grid-cols-[auto_1fr_auto] grid-row-2"> 31 <form class="flex relative col-span-3 sm:col-span-1 sm:col-start-2" method="GET"> 32 <input type="hidden" name="state" value="{{ if .FilteringByOpen }}open{{ else }}closed{{ end }}"> 33 <div class="flex-1 flex relative"> 34 <input 35 class="flex-1 py-1 pl-2 pr-10 mr-[-1px] rounded-r-none focus:border-0 focus:outline-none focus:ring focus:ring-blue-400 ring-inset peer" 36 type="text" 37 name="q" 38 value="{{ .FilterQuery }}" 39 placeholder=" " 40 > 41 <a 42 href="?state={{ if .FilteringByOpen }}open{{ else }}closed{{ end }}" 43 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" 44 > 45 {{ i "x" "w-4 h-4" }} 46 </a> 47 </div> 48 <button 49 type="submit" 50 class="p-2 text-gray-400 border rounded-r border-gray-400 dark:border-gray-600" 51 > 52 {{ i "search" "w-4 h-4" }} 53 </button> 54 </form> 55 <div class="sm:row-start-1"> 56 {{ template "fragments/tabSelector" (dict "Name" "state" "Values" $values "Active" $active) }} 57 </div> 58 <a 59 href="/{{ .RepoInfo.FullName }}/issues/new" 60 class="col-start-3 btn-create text-sm flex items-center justify-center gap-2 no-underline hover:no-underline hover:text-white" 61 > 62 {{ i "circle-plus" "w-4 h-4" }} 63 <span>new</span> 64 </a> 65 </div> 66 <div class="error" id="issues"></div> 67{{ end }} 68 69{{ define "repoAfter" }} 70 <div class="mt-2"> 71 {{ template "repo/issues/fragments/issueListing" (dict "Issues" .Issues "RepoPrefix" .RepoInfo.FullName "LabelDefs" .LabelDefs) }} 72 </div> 73 {{ block "pagination" . }} {{ end }} 74{{ end }} 75 76{{ define "pagination" }} 77<div class="flex justify-end mt-4 gap-2"> 78 {{ $currentState := "closed" }} 79 {{ if .FilteringByOpen }} 80 {{ $currentState = "open" }} 81 {{ end }} 82 83 {{ if gt .Page.Offset 0 }} 84 {{ $prev := .Page.Previous }} 85 <a 86 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700" 87 hx-boost="true" 88 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&q={{ .FilterQuery }}&offset={{ $prev.Offset }}&limit={{ $prev.Limit }}" 89 > 90 {{ i "chevron-left" "w-4 h-4" }} 91 previous 92 </a> 93 {{ else }} 94 <div></div> 95 {{ end }} 96 97 {{ if eq (len .Issues) .Page.Limit }} 98 {{ $next := .Page.Next }} 99 <a 100 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700" 101 hx-boost="true" 102 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&q={{ .FilterQuery }}&offset={{ $next.Offset }}&limit={{ $next.Limit }}" 103 > 104 next 105 {{ i "chevron-right" "w-4 h-4" }} 106 </a> 107 {{ end }} 108</div> 109{{ end }}