- {{#if this.searchOptions}}
- {{#discover.sidebar as |sidebar|}}
- {{registries-provider-facet
- options=this.filterableSources
- searchOptions=this.searchOptions
- onSearchOptionsUpdated=sidebar.onSearchOptionsUpdated
- provider=this.providerModel
- }}
-
- {{registries-registration-type-facet
- searchOptions=this.searchOptions
- onSearchOptionsUpdated=sidebar.onSearchOptionsUpdated
- provider=this.providerModel
- }}
-
- {{!-- TODO: this feature is not ready yet. Will be implemented in Phase2 Branded Reg --}}
- {{!-- {{#if this.providerModel}}
- {{registries-subjects-facet
- provider=this.providerModel
- searchOptions=this.searchOptions
- onSearchOptionsUpdated=sidebar.onSearchOptionsUpdated
- provider=this.providerModel
- }}
- {{/if}} --}}
- {{/discover.sidebar}}
- {{/if}}
-
- {{#if (and this.doSearch.lastSuccessful this.searchOptions)}}
- {{registries-discover-results-header
- totalResults=this.totalResults
- searchOptions=this.searchOptions
- sortOptions=this.sortOptions
- provider=this.providerModel
- setOrder=(action this.setOrder)
- }}
- {{#discover.results
- as |result|
- }}
-
- {{/discover.results}}
-
- {{#unless this.totalResults}}
-
-
- {{t 'registries.discover.no_results'}}
-
- {{t 'registries.discover.try_broadening'}}
-
- {{/unless}}
-
- {{#if (gt this.maxPage 1) }}
-
- {{search-paginator
- current=this.searchOptions.page
- maximum=this.maxPage
- pageChanged=(action 'changePage')
- }}
-
- {{/if}}
- {{else if this.doSearch.isError}}
-
- {{t 'registries.discover.error_loading'}}
-
- {{else}}
-
- {{loading-indicator dark=true}}
-
- {{/if}}
-