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-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 <form class="flex gap-4" method="GET"> 28 <input type="hidden" name="state" value="{{ if .FilteringByOpen }}open{{ else }}closed{{ end }}"> 29 <input class="" type="text" name="q" value="{{ .FilterQuery }}"> 30 <button class="btn" type="submit"> 31 search 32 </button> 33 </form> 34 </div> 35 <a 36 href="/{{ .RepoInfo.FullName }}/issues/new" 37 class="btn-create text-sm flex items-center justify-center gap-2 no-underline hover:no-underline hover:text-white" 38 > 39 {{ i "circle-plus" "w-4 h-4" }} 40 <span>new</span> 41 </a> 42</div> 43<div class="error" id="issues"></div> 44{{ end }} 45 46{{ define "repoAfter" }} 47 <div class="mt-2"> 48 {{ template "repo/issues/fragments/issueListing" (dict "Issues" .Issues "RepoPrefix" .RepoInfo.FullName "LabelDefs" .LabelDefs) }} 49 </div> 50 {{ block "pagination" . }} {{ end }} 51{{ end }} 52 53{{ define "pagination" }} 54<div class="flex justify-end mt-4 gap-2"> 55 {{ $currentState := "closed" }} 56 {{ if .FilteringByOpen }} 57 {{ $currentState = "open" }} 58 {{ end }} 59 60 {{ if gt .Page.Offset 0 }} 61 {{ $prev := .Page.Previous }} 62 <a 63 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700" 64 hx-boost="true" 65 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&q={{ .FilterQuery }}&offset={{ $prev.Offset }}&limit={{ $prev.Limit }}" 66 > 67 {{ i "chevron-left" "w-4 h-4" }} 68 previous 69 </a> 70 {{ else }} 71 <div></div> 72 {{ end }} 73 74 {{ if eq (len .Issues) .Page.Limit }} 75 {{ $next := .Page.Next }} 76 <a 77 class="btn flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:hover:bg-gray-700" 78 hx-boost="true" 79 href = "/{{ $.RepoInfo.FullName }}/issues?state={{ $currentState }}&q={{ .FilterQuery }}&offset={{ $next.Offset }}&limit={{ $next.Limit }}" 80 > 81 next 82 {{ i "chevron-right" "w-4 h-4" }} 83 </a> 84 {{ end }} 85</div> 86{{ end }}