|
1 | 1 | {{#if searchFunction}} |
2 | | -<input |
3 | | - id='search-input' |
4 | | - type='search' |
5 | | - value={{value}} |
6 | | - oninput={{perform search value='target.value'}} |
7 | | - placeholder="Search the guides" |
8 | | - autocomplete="off" |
9 | | -> |
| 2 | + <input |
| 3 | + id="search-input" |
| 4 | + type="search" |
| 5 | + value={{value}} |
| 6 | + oninput={{perform search value="target.value"}} |
| 7 | + placeholder="Search the guides" |
| 8 | + autocomplete="off" |
| 9 | + > |
10 | 10 |
|
11 | | -{{!-- Search results dropdown --}} |
12 | | -{{#ember-tether |
13 | | - target='#search-input' |
14 | | - targetAttachment='bottom right' |
15 | | - attachment='top right' |
16 | | - constraints=_resultTetherConstraints |
17 | | - class='ds-dropdown-results' |
18 | | -}} |
19 | | - {{#if response.hits}} |
20 | | - <span class="ds-suggestions ds-dropdown-menu"> |
21 | | - <div class="ds-suggestion"> |
22 | | - <div class="algolia-docsearch-suggestion algolia-docsearch-suggestion__main"> |
23 | | - <div class="algolia-docsearch-suggestion--category-header"> |
24 | | - <span class="algolia-docsearch-suggestion--category-header-lvl0"> |
| 11 | + {{!-- Search results dropdown --}} |
| 12 | + {{#ember-tether |
| 13 | + target="#search-input" |
| 14 | + targetAttachment="bottom right" |
| 15 | + attachment="top right" |
| 16 | + constraints=_resultTetherConstraints |
| 17 | + class="ds-dropdown-results" |
| 18 | + }} |
| 19 | + {{#if response.hits}} |
| 20 | + <span class="ds-suggestions ds-dropdown-menu"> |
| 21 | + <div class="ds-suggestion"> |
| 22 | + <div class="algolia-docsearch-suggestion algolia-docsearch-suggestion__main"> |
| 23 | + <div class="algolia-docsearch-suggestion--category-header"> |
| 24 | + <span class="algolia-docsearch-suggestion--category-header-lvl0"> |
25 | 25 | Search Results |
26 | | - </span> |
| 26 | + </span> |
| 27 | + </div> |
| 28 | + <div class="algolia-docsearch-suggestion--wrapper"></div> |
27 | 29 | </div> |
28 | | - <div class="algolia-docsearch-suggestion--wrapper"></div> |
29 | 30 | </div> |
30 | | - </div> |
31 | | - {{#each response.hits as |result|}} |
32 | | - {{search-result result=result}} |
33 | | - {{/each}} |
34 | | - <div class="powered-by-algolia"> |
35 | | - <a href="https://www.algolia.com/" target="_blank"> |
36 | | - <img src="/images/logos/search-by-algolia.svg" alt="Search Powered by Algolia"> |
37 | | - </a> |
38 | | - </div> |
39 | | - </span> |
40 | | - {{/if}} |
41 | | -{{/ember-tether}} |
| 31 | + {{#each response.hits as |result|}} |
| 32 | + {{search-result result=result}} |
| 33 | + {{/each}} |
| 34 | + <div class="powered-by-algolia"> |
| 35 | + <a href="https://www.algolia.com/" target="_blank" rel="noopener"> |
| 36 | + <img src="/images/logos/search-by-algolia.svg" alt="Search Powered by Algolia"> |
| 37 | + </a> |
| 38 | + </div> |
| 39 | + </span> |
| 40 | + {{/if}} |
| 41 | + {{/ember-tether}} |
42 | 42 | {{/if}} |
0 commit comments