-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- inherit from UserIndexRoute - fix/rewrite model hooks - reformat template
- Loading branch information
1 parent
715bd0e
commit e45a695
Showing
11 changed files
with
87 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
<main class="content content-search"> | ||
<h2>{{t (concat "routes.search.header." filter)}}<span>{{query}}</span></h2> | ||
{{#if noResults}} | ||
<section class="noresults">{{t "routes.search.empty"}}</section> | ||
{{/if}} | ||
<h2>{{t (concat "routes.search.header." filter)}}<span>{{query}}</span></h2> | ||
{{#if noResults}} | ||
<section class="noresults">{{t "routes.search.empty"}}</section> | ||
{{/if}} | ||
|
||
{{#if games.length}} | ||
{{#if notFiltered}}<h3>{{t "routes.search.subheader.games"}}</h3>{{/if}} | ||
{{#content-list games infiniteScroll=(bool-not notFiltered) classNames="search-games" as |item isNewItem isDuplicate|}} | ||
{{game-item content=item isNewItem=(if notFiltered false isNewItem) isDuplicate=isDuplicate}} | ||
{{/content-list}} | ||
{{/if}} | ||
{{#if games.length}} | ||
{{#if notFiltered}}<h3>{{t "routes.search.subheader.games"}}</h3>{{/if}} | ||
{{#content-list | ||
games | ||
infiniteScroll=(bool-not notFiltered) | ||
classNames="search-games" | ||
as |item isNewItem isDuplicate| | ||
}} | ||
{{game-item | ||
content=item.game | ||
isNewItem=(if notFiltered false isNewItem) | ||
isDuplicate=isDuplicate | ||
}} | ||
{{/content-list}} | ||
{{/if}} | ||
|
||
{{#if channels.length}} | ||
{{#if notFiltered}}<h3>{{t "routes.search.subheader.channels"}}</h3>{{/if}} | ||
{{#content-list channels infiniteScroll=(bool-not notFiltered) classNames="search-channels" as |item isNewItem isDuplicate|}} | ||
{{channel-item content=item isNewItem=(if notFiltered false isNewItem) isDuplicate=isDuplicate}} | ||
{{/content-list}} | ||
{{/if}} | ||
|
||
{{#if streams.length}} | ||
{{#if notFiltered}}<h3>{{t "routes.search.subheader.streams"}}</h3>{{/if}} | ||
{{#content-list streams classNames="search-streams" as |item isNewItem isDuplicate|}} | ||
{{stream-item content=item isNewItem=isNewItem isDuplicate=isDuplicate}} | ||
{{/content-list}} | ||
{{/if}} | ||
{{#if channels.length}} | ||
{{#if notFiltered}}<h3>{{t "routes.search.subheader.channels"}}</h3>{{/if}} | ||
{{#content-list | ||
channels | ||
classNames="search-channels" | ||
as |item isNewItem isDuplicate| | ||
}} | ||
{{channel-item | ||
content=item | ||
isNewItem=isNewItem | ||
isDuplicate=isDuplicate | ||
}} | ||
{{/content-list}} | ||
{{/if}} | ||
</main> |