Add podcast and episodes templates

This commit is contained in:
Brittany Storoz 2015-07-17 20:49:53 -04:00
Родитель c76512e4e6
Коммит cdfb6e96d8
2 изменённых файлов: 49 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,32 @@
<div class="episodes">
{{#each content=controller}}
<div {{action setEpisode this}} {{bind-attr class=":episode isNew"}}>
<div class="name">
{{#if isNew}}
<strong>{{episode.new}}</strong>
{{/if}}
{{name}}
</div>
{{!-- Commented out while we are streaming-only. This code exposes
download/downloading/play/stream UI, but for now we're streaming
only so we don't show anything.
{{#if HighFidelity.isPackaged}}
<div class="actions">
{{#if isDownloaded}}
<i class="fa fa-play-circle"></i>
{{else}}
{{#if isDownloading}}
<i class="fa fa-spinner fa-spin"></i>
{{else}}
<i class="fa fa-cloud-download" {{action download this}}></i>
{{/if}}
{{/if}}
</div>
{{/if}}
--}}
</div>
{{else}}
{{render "spinner"}}
{{/each}}
</div>

17
app/templates/podcast.hbs Normal file
Просмотреть файл

@ -0,0 +1,17 @@
<div class="podcast">
<img class="cover-image" {{bind-attr src=model.coverImageURL}}
{{bind-attr alt=model.title}}>
<p>{{model.description}} {{model.lastUpdated}}</p>
<button {{action delete}}>Unsubscribe</button>
{{!--
<p>Last updated: {{lastUpdated}}</p>
--}}
</div>
<hr/>
{{render "episodes" model.episodes}}
{{outlet}}