From cdfb6e96d8b3c3e2e0fa4e0b2fbb9154d7fb6c01 Mon Sep 17 00:00:00 2001 From: Brittany Storoz Date: Fri, 17 Jul 2015 20:49:53 -0400 Subject: [PATCH] Add podcast and episodes templates --- app/templates/episodes.hbs | 32 ++++++++++++++++++++++++++++++++ app/templates/podcast.hbs | 17 +++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 app/templates/episodes.hbs create mode 100644 app/templates/podcast.hbs diff --git a/app/templates/episodes.hbs b/app/templates/episodes.hbs new file mode 100644 index 0000000..b6eb305 --- /dev/null +++ b/app/templates/episodes.hbs @@ -0,0 +1,32 @@ +
+ {{#each content=controller}} +
+
+ {{#if isNew}} + {{episode.new}} + {{/if}} + {{name}} +
+ + {{!-- 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}} +
+ {{#if isDownloaded}} + + {{else}} + {{#if isDownloading}} + + {{else}} + + {{/if}} + {{/if}} +
+ {{/if}} + --}} +
+ {{else}} + {{render "spinner"}} + {{/each}} +
diff --git a/app/templates/podcast.hbs b/app/templates/podcast.hbs new file mode 100644 index 0000000..af25fa0 --- /dev/null +++ b/app/templates/podcast.hbs @@ -0,0 +1,17 @@ +
+ model.title}} + +

{{model.description}} {{model.lastUpdated}}

+ + + {{!-- +

Last updated: {{lastUpdated}}

+ --}} +
+ +
+ +{{render "episodes" model.episodes}} + +{{outlet}}