diff --git a/lib/changelog_web/templates/episode/show.html.eex b/lib/changelog_web/templates/episode/show.html.heex similarity index 87% rename from lib/changelog_web/templates/episode/show.html.eex rename to lib/changelog_web/templates/episode/show.html.heex index 48a504166f..15b7397113 100644 --- a/lib/changelog_web/templates/episode/show.html.eex +++ b/lib/changelog_web/templates/episode/show.html.heex @@ -57,16 +57,16 @@
-

Changelog++ <%= plusplus_cta(@episode) %> Join!

+

Changelog++ <%= plusplus_cta(@episode) %> Join!

@@ -82,7 +82,7 @@ <% end %> -
+
<%= if Enum.any?(participants) do %>
@@ -141,22 +141,24 @@ Chapter Number Chapter Start Time Chapter Title + Chapter Duration <%= for {chapter, index} <- Enum.with_index(@episode.audio_chapters, 1) do %> - + <%= index %> - <%= TimeView.duration(chapter.starts_at) %> + <%= TimeView.duration(chapter.starts_at) %> - + <%= if Changelog.StringKit.present?(chapter.link_url) do %> <%= link(chapter.title, to: chapter.link_url, rel: "nofollow") %> <% else %> <%= chapter.title %> <% end %> + <%= TimeView.duration(chapter.ends_at - chapter.starts_at) %> <% end %> @@ -198,8 +200,8 @@
<%= for {part, index} <- Enum.with_index(@episode.transcript) do %> <% speaker = Enum.find(participants, fn(x) -> x.id == part["person_id"] end) %> - -
+ +
<%= if speaker do %> <%= link to: PersonView.profile_path(speaker), title: speaker.name do %> @@ -241,13 +243,14 @@

We're hard at work on the transcript for this episode! <%= if @current_user do %> <%= if Subscription.is_subscribed(@current_user, @episode) do %> - <%= link("Click here", to: Routes.episode_path(@conn, :unsubscribe, @podcast.slug, @episode.slug), method: :post) %> to cancel your transcript notification. 💪

+ <%= link("Click here", to: ~p"/#{@podcast.slug}/#{@episode.slug}/unsubscribe", method: :post) %> to cancel your transcript notification. 💪 <% else %> - <%= link("Click here", to: Routes.episode_path(@conn, :subscribe, @podcast.slug, @episode.slug), method: :post) %> and we'll notify you when it's ready. 💪

+ <%= link("Click here", to: ~p"/#{@podcast.slug}/#{@episode.slug}/subscribe", method: :post) %> and we'll notify you when it's ready. 💪 <% end %> <% else %> - <%= link("Sign in", to: Routes.sign_in_path(@conn, :new)) %> / <%= link("up", to: Routes.person_path(@conn, :join)) %> to access transcript notifications. 💪

+ <%= link("Sign in", to: ~p"/in") %> / <%= link("up", to: ~p"/join") %> to access transcript notifications. 💪 <% end %> +

<% end %>