search template clean-up
This commit is contained in:
parent
ae953e8087
commit
da8e5fbda3
|
@ -1,35 +1,32 @@
|
||||||
{{view 'search-text-field' value=term searchContextEnabled=searchContextEnabled searchContext=searchContext id="search-term"}}
|
{{view "search-text-field" value=term searchContextEnabled=searchContextEnabled searchContext=searchContext id="search-term"}}
|
||||||
<div class='search-context'>
|
<div class="search-context">
|
||||||
{{#if searchContext}}
|
{{#if searchContext}}
|
||||||
<label>
|
<label>
|
||||||
{{input type="checkbox" name="searchContext" checked=searchContextEnabled}} {{searchContextDescription}}
|
{{input type="checkbox" name="searchContext" checked=searchContextEnabled}} {{searchContextDescription}}
|
||||||
</label>
|
</label>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<a href="#" class="show-help" {{action "showSearchHelp" bubbles=false}}>{{i18n 'show_help'}}</a>
|
<a href class="show-help" {{action "showSearchHelp" bubbles=false}}>{{i18n "show_help"}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{#if loading}}
|
{{#if loading}}
|
||||||
<div class='searching'>{{loading-spinner}}</div>
|
<div class="searching">{{loading-spinner}}</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="results">
|
<div class="results">
|
||||||
{{#unless noResults}}
|
{{#if noResults}}
|
||||||
|
<div class="no-results">
|
||||||
|
{{i18n "search.no_results"}}
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
{{#each resultType in content.resultTypes}}
|
{{#each resultType in content.resultTypes}}
|
||||||
<ul>
|
<ul>
|
||||||
<li class='heading row'>
|
<li class="heading row">{{resultType.name}}</li>
|
||||||
{{resultType.name}}
|
{{view "search-results-type" type=resultType.type displayType=resultType.displayType content=resultType.results}}
|
||||||
</li>
|
|
||||||
{{view 'search-results-type' type=resultType.type displayType=resultType.displayType content=resultType.results}}
|
|
||||||
</ul>
|
</ul>
|
||||||
<div class='no-results'>
|
<div class="no-results">
|
||||||
{{#if resultType.more}}
|
{{#if resultType.more}}
|
||||||
<a href='#' class='filter' {{action "moreOfType" resultType.type bubbles=false}}>{{i18n 'show_more'}} <i class="fa fa-chevron-down"></i></a>
|
<a href class="filter" {{action "moreOfType" resultType.type bubbles=false}}>{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
|
||||||
{{else}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{else}}
|
{{/if}}
|
||||||
<div class='no-results'>
|
|
||||||
{{i18n 'search.no_results'}}
|
|
||||||
</div>
|
|
||||||
{{/unless}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue