mirror of
https://github.com/go-gitea/gitea
synced 2025-08-07 10:08:20 +00:00
Improve issue & code search (#33860)
Each "indexer" should provide the "search modes" they support by themselves. And we need to remove the "fuzzy" search for code.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
<form class="ui form ignore-dirty">
|
||||
{{template "shared/search/combo_fuzzy" dict "Value" .Keyword "Disabled" .CodeIndexerUnavailable "IsFuzzy" .IsFuzzy "Placeholder" (ctx.Locale.Tr "search.code_kind")}}
|
||||
{{template "shared/search/combo" (dict
|
||||
"Disabled" .CodeIndexerUnavailable
|
||||
"Value" .Keyword
|
||||
"Placeholder" (ctx.Locale.Tr "search.code_kind")
|
||||
"SearchModes" .SearchModes
|
||||
"SelectedSearchMode" .SelectedSearchMode
|
||||
)}}
|
||||
</form>
|
||||
<div class="divider"></div>
|
||||
<div class="ui list">
|
||||
|
Reference in New Issue
Block a user