File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
<form class="ui form ignore-dirty" style="max-width: 100%">
2
2
<div class="ui fluid action input">
3
- <input name="q" value="{{.Keyword}}"{{if .CodeIndexerUnavailable }} disabled{{end}} placeholder="{{.locale.Tr "explore.search"}}…" autofocus>
4
- <div class="ui dropdown selection tooltip{{if .CodeIndexerUnavailable }} disabled{{end}}" data-content="{{.locale.Tr "explore.search.type.tooltip"}}">
5
- <input name="t" type="hidden" value="{{.queryType}}"{{if .CodeIndexerUnavailable }} disabled{{end}}>{{svg "octicon-triangle-down" 14 "dropdown icon"}}
3
+ <input name="q" value="{{.Keyword}}"{{if .CodeIndexerUnavailable}} disabled{{end}} placeholder="{{.locale.Tr "explore.search"}}…" autofocus>
4
+ <div class="ui dropdown selection tooltip{{if .CodeIndexerUnavailable}} disabled{{end}}" data-content="{{.locale.Tr "explore.search.type.tooltip"}}">
5
+ <input name="t" type="hidden" value="{{.queryType}}"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{svg "octicon-triangle-down" 14 "dropdown icon"}}
6
6
<div class="text">{{.locale.Tr (printf "explore.search.%s" (or .queryType "fuzzy"))}}</div>
7
7
<div class="menu transition hidden" tabindex="-1" style="display: block !important;">
8
8
<div class="item tooltip" data-value="" data-content="{{.locale.Tr "explore.search.fuzzy.tooltip"}}">{{.locale.Tr "explore.search.fuzzy"}}</div>
9
9
<div class="item tooltip" data-value="match" data-content="{{.locale.Tr "explore.search.match.tooltip"}}">{{.locale.Tr "explore.search.match"}}</div>
10
10
</div>
11
11
</div>
12
- <button class="ui primary button"{{if .CodeIndexerUnavailable }} disabled{{end}}>{{.locale.Tr "explore.search"}}</button>
12
+ <button class="ui primary button"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{.locale.Tr "explore.search"}}</button>
13
13
</div>
14
14
</form>
Original file line number Diff line number Diff line change 5
5
{{template "code/searchform" .}}
6
6
<div class="ui divider"></div>
7
7
<div class="ui user list">
8
- {{if .CodeIndexerUnavailable }}
8
+ {{if .CodeIndexerUnavailable}}
9
9
<div class="ui error message">
10
10
<p>{{$.locale.Tr "explore.code_search_unavailable"}}</p>
11
11
</div>
12
12
{{else if .SearchResults}}
13
13
<h3>
14
- {{.locale.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html }}
14
+ {{.locale.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html}}
15
15
</h3>
16
16
{{template "code/searchresults" .}}
17
17
{{else if .Keyword}}
You can’t perform that action at this time.
0 commit comments