mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-29 09:31:11 -05:00
887a914a7d
Backport of https://codeberg.org/forgejo/forgejo/pulls/4628. This PR fixes a wrong placeholder for the search for milestones. I tested it locally (see attachments, below). Before: https://codeberg.org/attachments/ba845ce1-1f20-4131-a74d-7220986a4acf After: https://codeberg.org/attachments/0c4e32ee-b1a8-4472-837d-daa2a2a50121 Co-authored-by: Robert Wolff <mahlzahn@posteo.de> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4682 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
20 lines
1.2 KiB
Go HTML Template
20 lines
1.2 KiB
Go HTML Template
<form class="list-header-search ui form ignore-dirty issue-list-search">
|
|
<div class="ui small search fluid action input">
|
|
<input type="hidden" name="state" value="{{$.State}}">
|
|
{{if not .PageIsMilestones}}
|
|
<input type="hidden" name="type" value="{{$.ViewType}}">
|
|
<input type="hidden" name="labels" value="{{.SelectLabels}}">
|
|
<input type="hidden" name="milestone" value="{{$.MilestoneID}}">
|
|
<input type="hidden" name="project" value="{{$.ProjectID}}">
|
|
<input type="hidden" name="assignee" value="{{$.AssigneeID}}">
|
|
<input type="hidden" name="poster" value="{{$.PosterID}}">
|
|
{{end}}
|
|
{{if .PageIsPullList}}
|
|
{{template "shared/search/combo_fuzzy" dict "Value" .Keyword "IsFuzzy" .IsFuzzy "Placeholder" (ctx.Locale.Tr "search.pull_kind") "Tooltip" (ctx.Locale.Tr "explore.go_to")}}
|
|
{{else if .PageIsMilestones}}
|
|
{{template "shared/search/combo_fuzzy" dict "Value" .Keyword "IsFuzzy" .IsFuzzy "Placeholder" (ctx.Locale.Tr "search.milestone_kind") "Tooltip" (ctx.Locale.Tr "explore.go_to")}}
|
|
{{else}}
|
|
{{template "shared/search/combo_fuzzy" dict "Value" .Keyword "IsFuzzy" .IsFuzzy "Placeholder" (ctx.Locale.Tr "search.issue_kind") "Tooltip" (ctx.Locale.Tr "explore.go_to")}}
|
|
{{end}}
|
|
</div>
|
|
</form>
|