{{ define "title" }}issues · {{ .RepoInfo.FullName }}{{ end }} {{ define "extrameta" }} {{ $title := "issues"}} {{ $url := printf "https://tangled.org/%s/issues" .RepoInfo.FullName }} {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} {{ end }} {{ define "repoContent" }} {{ $active := "closed" }} {{ if .FilteringByOpen }} {{ $active = "open" }} {{ end }} {{ $open := (dict "Key" "open" "Value" "open" "Icon" "circle-dot" "Meta" (string .RepoInfo.Stats.IssueCount.Open)) }} {{ $closed := (dict "Key" "closed" "Value" "closed" "Icon" "ban" "Meta" (string .RepoInfo.Stats.IssueCount.Closed)) }} {{ $values := list $open $closed }}
{{ template "fragments/tabSelector" (dict "Name" "state" "Values" $values "Active" $active "Include" "#search-q") }}
{{ i "circle-plus" "w-4 h-4" }} new
{{ end }} {{ define "repoAfter" }}
{{ template "repo/issues/fragments/issueListing" (dict "Issues" .Issues "RepoPrefix" .RepoInfo.FullName "LabelDefs" .LabelDefs) }}
{{if gt .IssueCount .Page.Limit }} {{ $state := "closed" }} {{ if .FilteringByOpen }} {{ $state = "open" }} {{ end }} {{ template "fragments/pagination" (dict "Page" .Page "TotalCount" .IssueCount "BasePath" (printf "/%s/issues" .RepoInfo.FullName) "QueryParams" (queryParams "state" $state "q" .FilterQuery) ) }} {{ end }} {{ end }}