Add podcast and episodes templates
This commit is contained in:
Родитель
c76512e4e6
Коммит
cdfb6e96d8
|
@ -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>
|
|
@ -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}}
|
Загрузка…
Ссылка в новой задаче