2023-06-28 20:10:36 +08:00
|
|
|
<form class="ui form ignore-dirty">
|
2022-10-11 07:12:03 +08:00
|
|
|
<div class="ui fluid action input">
|
2023-11-20 16:57:46 +08:00
|
|
|
{{template "shared/searchinput" dict "Value" .Keyword "Disabled" .CodeIndexerUnavailable}}
|
2023-09-25 16:56:50 +08:00
|
|
|
<div class="ui dropdown selection {{if .CodeIndexerUnavailable}} disabled{{end}}" data-tooltip-content="{{ctx.Locale.Tr "explore.search.type.tooltip"}}">
|
2022-10-14 09:33:54 +08:00
|
|
|
<input name="t" type="hidden" value="{{.queryType}}"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2023-09-25 16:56:50 +08:00
|
|
|
<div class="text">{{ctx.Locale.Tr (printf "explore.search.%s" (or .queryType "fuzzy"))}}</div>
|
2023-02-14 19:53:54 +08:00
|
|
|
<div class="menu">
|
2023-09-25 20:42:40 +08:00
|
|
|
<div class="item" data-value="" data-tooltip-content="{{ctx.Locale.Tr "explore.search.fuzzy.tooltip"}}">{{ctx.Locale.Tr "explore.search.fuzzy"}}</div>
|
|
|
|
<div class="item" data-value="match" data-tooltip-content="{{ctx.Locale.Tr "explore.search.match.tooltip"}}">{{ctx.Locale.Tr "explore.search.match"}}</div>
|
2022-10-11 07:12:03 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-25 16:56:50 +08:00
|
|
|
<button class="ui primary button"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{ctx.Locale.Tr "explore.search"}}</button>
|
2022-10-11 07:12:03 +08:00
|
|
|
</div>
|
|
|
|
</form>
|