<form class="ui form ignore-dirty" action="{{.RepoLink}}/search" method="get">
<div class="field">
<div class="ui action input{{if.CodeIndexerUnavailable}} disabled left icon{{end}}"{{if.CodeIndexerUnavailable}} data-tooltip-content="{{.locale.Tr"repo.search.code_search_unavailable"}}"{{end}}>
<div class="ui small action input{{if.CodeIndexerUnavailable}} disabled left icon{{end}}"{{if.CodeIndexerUnavailable}} data-tooltip-content="{{.locale.Tr"repo.search.code_search_unavailable"}}"{{end}}>
<div class="ui three column grid issue-list-headers">
<div class="column">
{{template"repo/issue/navbar".}}
</div>
<div class="column center aligned">
{{template"repo/issue/search".}}
</div>
<div class="list-header">
{{template"repo/issue/navbar".}}
{{template"repo/issue/search".}}
{{ifnot.Repository.IsArchived}}
<div class="column right aligned">
{{if.PageIsIssueList}}
<a class="ui green button" href="{{.RepoLink}}/issues/new{{if.NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr"repo.issues.new"}}</a>
{{else}}
<a class="ui green button {{ifnot.PullRequestCtx.Allowed}}disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.Repository.Link}}/compare/{{.Repository.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{.locale.Tr"repo.pulls.new"}}</a>
{{end}}
</div>
{{if.PageIsIssueList}}
<a class="ui small green button" href="{{.RepoLink}}/issues/new{{if.NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr"repo.issues.new"}}</a>
{{else}}
<a class="ui small green button new-pr-button{{ifnot.PullRequestCtx.Allowed}} disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.Repository.Link}}/compare/{{.Repository.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{.locale.Tr"repo.pulls.new"}}</a>
{{end}}
{{else}}
{{ifnot.PageIsIssueList}}
<div class="column right aligned">
<a class="ui green button {{ifnot.PullRequestCtx.Allowed}}disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{$.locale.Tr"action.compare_commits_general"}}</a>
</div>
<a class="ui small green small button{{ifnot.PullRequestCtx.Allowed}} disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{$.locale.Tr"action.compare_commits_general"}}</a>
{{end}}
{{end}}
</div>
@ -176,7 +168,7 @@
{{end}}
<!-- Sort -->
<div class="ui dropdown downward type jump item">
<div class="list-header-sort ui small dropdown downward type jump item">