Some checks failed
cache-seeder / prune (push) Has been skipped
cache-seeder / frontend (push) Failing after 3s
cache-seeder / python (push) Failing after 3s
cache-seeder / gobuild (push) Failing after 4s
cache-seeder / lint (bindata, lint-backend) (push) Failing after 3s
giteabot backport / giteabot (push) Has been skipped
giteabot / giteabot (push) Has been skipped
cache-prune / prune (push) Has been skipped
release-nightly-snapcraft / build-and-publish (ubuntu-24.04) (push) Has been cancelled
release-nightly-snapcraft / build-and-publish (ubuntu-24.04-arm) (push) Has been cancelled
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-container (push) Has been cancelled
cron-renovate / cron-renovate (push) Has been skipped
25 lines
1.5 KiB
Handlebars
25 lines
1.5 KiB
Handlebars
{{/* this tmpl is quite dirty, it should not mix unrelated things together .... need to split it in the future*/}}
|
|
{{$allStatesLink := ""}}{{$openLink := ""}}{{$closedLink := ""}}
|
|
{{$projectIDsQuery := SliceUtils.JoinInt64 $.ProjectIDs}}
|
|
{{if .PageIsMilestones}}
|
|
{{$allStatesLink = QueryBuild "?" "q" $.Keyword "sort" $.SortType "state" "all"}}
|
|
{{else}}
|
|
{{$allStatesLink = QueryBuild "?" "q" $.Keyword "type" $.ViewType "sort" $.SortType "state" "all" "labels" $.SelectLabels "milestone" $.MilestoneID "project" $projectIDsQuery "assignee" $.AssigneeID "poster" $.PosterUsername "archived_labels" (Iif $.ShowArchivedLabels "true")}}
|
|
{{end}}
|
|
{{$openLink = QueryBuild $allStatesLink "state" "open"}}
|
|
{{$closedLink = QueryBuild $allStatesLink "state" "closed"}}
|
|
<div class="small-menu-items ui compact tiny menu">
|
|
<a class="{{if eq .State "open"}}active {{end}}item flex-text-inline" href="{{if eq .State "open"}}{{$allStatesLink}}{{else}}{{$openLink}}{{end}}">
|
|
{{if .PageIsMilestones}}
|
|
{{svg "octicon-milestone"}}
|
|
{{else}}
|
|
{{Iif .PageIsPullList (svg "octicon-git-pull-request") (svg "octicon-issue-opened")}}
|
|
{{end}}
|
|
{{ctx.Locale.PrettyNumber .OpenCount}} {{ctx.Locale.Tr "repo.issues.open_title"}}
|
|
</a>
|
|
<a class="{{if eq .State "closed"}}active {{end}}item flex-text-inline" href="{{if eq .State "closed"}}{{$allStatesLink}}{{else}}{{$closedLink}}{{end}}">
|
|
{{svg "octicon-issue-closed"}}
|
|
{{ctx.Locale.PrettyNumber .ClosedCount}} {{ctx.Locale.Tr "repo.issues.closed_title"}}
|
|
</a>
|
|
</div>
|