···173173union_tooltip = Include results that match any of the whitespace seperated keywords
174174exact = Exact
175175exact_tooltip = Include only results that match the exact search term
176176+regexp = RegExp
177177+regexp_tooltip = Interpret the search term as a regular expression
176178repo_kind = Search repos...
177179user_kind = Search users...
178180org_kind = Search orgs...
···22{{/* Disabled (optional) - if search field/button has to be disabled */}}
33{{/* Placeholder (optional) - placeholder text to be used */}}
44{{/* IsFuzzy - state of the fuzzy/union search toggle */}}
55-{{/* CodeIndexerDisabled (optional) - if the performed search is done using git-grep */}}
65{{/* Tooltip (optional) - a tooltip to be displayed on button hover */}}
76<div class="ui small fluid action input">
87 {{template "shared/search/input" dict "Value" .Value "Disabled" .Disabled "Placeholder" .Placeholder}}
98 {{template "shared/search/fuzzy"
109 dict
1110 "Disabled" .Disabled
1212- "IsFuzzy" .IsFuzzy
1313- "CodeIndexerDisabled" .CodeIndexerDisabled}}
1111+ "IsFuzzy" .IsFuzzy}}
1412 {{template "shared/search/button" dict "Disabled" .Disabled "Tooltip" .Tooltip}}
1513</div>
+24
templates/shared/search/combo_multi.tmpl
···11+{{/* Value - value of the search field (for search results page) */}}
22+{{/* Disabled (optional) - if search field/button has to be disabled */}}
33+{{/* Placeholder (optional) - placeholder text to be used */}}
44+{{/* Selected - the currently selected option */}}
55+{{/* Options - options available to choose from */}}
66+{{/* Tooltip (optional) - a tooltip to be displayed on button hover */}}
77+<div class="ui small fluid action input">
88+ {{template "shared/search/input" dict "Value" .Value "Disabled" .Disabled "Placeholder" .Placeholder}}
99+ <div class="ui small dropdown selection {{if .Disabled}} disabled{{end}}" data-tooltip-content="{{ctx.Locale.Tr "search.type_tooltip"}}">
1010+ <div class="text">
1111+ {{ctx.Locale.Tr (printf "search.%s" .Selected)}}
1212+ </div>
1313+ <div class="menu" data-test-tag="fuzzy-dropdown">
1414+ {{range $opt := .Options}}
1515+ {{$isActive := eq $.Selected $opt}}
1616+ <label class="{{if $isActive}}active {{end}}item" data-value="{{$opt}}" data-tooltip-content="{{ctx.Locale.Tr (printf "search.%s_tooltip" $opt)}}">
1717+ <input hidden type="radio" name="mode" value="{{$opt}}"{{if $isActive}} checked{{end}}/>
1818+ {{ctx.Locale.Tr (printf "search.%s" $opt)}}
1919+ </label>
2020+ {{end}}
2121+ </div>
2222+ </div>
2323+ {{template "shared/search/button" dict "Disabled" .Disabled "Tooltip" .Tooltip}}
2424+</div>