2022-10-11 02:12:03 +03:00
|
|
|
<form class="ui form ignore-dirty" style="max-width: 100%">
|
|
|
|
<div class="ui fluid action input">
|
2022-10-14 04:33:54 +03:00
|
|
|
<input name="q" value="{{.Keyword}}"{{if .CodeIndexerUnavailable}} disabled{{end}} placeholder="{{.locale.Tr "explore.search"}}…" autofocus>
|
|
|
|
<div class="ui dropdown selection tooltip{{if .CodeIndexerUnavailable}} disabled{{end}}" data-content="{{.locale.Tr "explore.search.type.tooltip"}}">
|
|
|
|
<input name="t" type="hidden" value="{{.queryType}}"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2022-10-11 02:12:03 +03:00
|
|
|
<div class="text">{{.locale.Tr (printf "explore.search.%s" (or .queryType "fuzzy"))}}</div>
|
2023-02-14 14:53:54 +03:00
|
|
|
<div class="menu">
|
2022-10-11 02:12:03 +03:00
|
|
|
<div class="item tooltip" data-value="" data-content="{{.locale.Tr "explore.search.fuzzy.tooltip"}}">{{.locale.Tr "explore.search.fuzzy"}}</div>
|
|
|
|
<div class="item tooltip" data-value="match" data-content="{{.locale.Tr "explore.search.match.tooltip"}}">{{.locale.Tr "explore.search.match"}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-14 04:33:54 +03:00
|
|
|
<button class="ui primary button"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{.locale.Tr "explore.search"}}</button>
|
2022-10-11 02:12:03 +03:00
|
|
|
</div>
|
|
|
|
</form>
|