Skip to content

Commit

Permalink
Merge pull request #438 from internet4000/fix/about-radios
Browse files Browse the repository at this point in the history
basic latest featured
  • Loading branch information
hugurp authored Apr 7, 2020
2 parents fe27223 + f2dc67c commit 3d0ed11
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 5 additions & 1 deletion app/about/intro/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import ChannelsIndexRoute from 'radio4000/channels/index/route'

export default ChannelsIndexRoute.extend({
model() {
return this.store.findAll('channel')
return this.store.query('channel', {
orderBy: 'isFeatured',
equalTo: true,
limitToLast: 10
});
}
})
20 changes: 11 additions & 9 deletions app/about/intro/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,19 @@
<section class="Section">
<div class="Container Container--full">
<div class="Grid Grid--center Grid--vcenter Grid--firstHidden">
{{#each model as |item|}}
{{#if model}}
{{#each model as |item|}}
<div class="Grid-cell">
{{channel-card channel=item}}
</div>
{{/each}}
<div class="Grid-cell">
{{channel-card channel=item}}
<div class="ChannelCard ChannelCard--text">
<p>Tap a channel to play it!</p>
<p>Each channel is as unique as the person who is crafting it. <a href="{{href-to 'channels.search'}}" title="">Go to all radios</a>.</p>
</div>
</div>
{{/each}}
<div class="Grid-cell">
<div class="ChannelCard ChannelCard--text">
<p>Simply tap a channel to play it!</p>
<p>Each channel is as unique as the person who is crafting it. <a href="{{href-to 'channels.search'}}" title="">Go to all radios</a>.</p>
</div>
</div>
{{/if}}
</div>
</div>
</section>
Expand Down

0 comments on commit 3d0ed11

Please sign in to comment.