mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-23 05:42:33 +09:00
Add ability to add and remove multiple projects per issue and pull request. Resolve #12974 --------- Signed-off-by: Icy Avocado <avocado@ovacoda.com> Co-authored-by: Tyrone Yeh <siryeh@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: OpenCode (gpt-5.2-codex) <opencode@openai.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
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>
|