mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-02 16:29:06 +01:00
8abc1aae4a
The ui of list header in milestone page is not same as issue and pr list page. And they are using different template codes which can be merged into one. Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/29eb426c-2dd6-4cf2-96e0-82339fb631bb) ![image](https://github.com/go-gitea/gitea/assets/18380374/b36c4dff-469a-4395-8a02-a8c54e17ab21) ![image](https://github.com/go-gitea/gitea/assets/18380374/d882c74a-451b-431d-b58e-3635a15d9718) ![image](https://github.com/go-gitea/gitea/assets/18380374/292cd38d-1b50-47f1-b32c-9b5de90ce5fb) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/4529234e-67dc-4e17-9440-e638be4fbc41) ![image](https://github.com/go-gitea/gitea/assets/18380374/c15b4d86-0762-497b-b28d-72d09443d629) --------- Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
18 lines
1 KiB
Go HTML Template
18 lines
1 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}}
|
|
{{template "shared/searchinput" dict "Value" .Keyword}}
|
|
{{if .PageIsIssueList}}
|
|
<button id="issue-list-quick-goto" class="ui small icon button gt-hidden" data-tooltip-content="{{ctx.Locale.Tr "explore.go_to"}}" data-repo-link="{{.RepoLink}}">{{svg "octicon-hash"}}</button>
|
|
{{end}}
|
|
<button class="ui small icon button" aria-label="{{ctx.Locale.Tr "explore.search"}}">{{svg "octicon-search"}}</button>
|
|
</div>
|
|
</form>
|