-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link up podcast & clips playlists on YouTube
- Loading branch information
1 parent
aeda011
commit 776e5d3
Showing
11 changed files
with
94 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<%= if @podcast.status == :inactive do %> | ||
<p class="feed-note">This podcast is not in production. Please browse and enjoy the archive below.</p> | ||
<% end %> | ||
|
||
<nav class="subnav"> | ||
<ul class="subnav-list"> | ||
<li class={"subnav-list-item #{SharedHelpers.active_class(@conn, "show")}"}> | ||
<%= link("Recent", to: ~p"/#{@podcast.slug}" <> "#feed", title: "Recent episodes of #{@podcast.name}", alt: "Recent Episodes") %> | ||
</li> | ||
<%= if @podcast.clips_url do %> | ||
<li class="subnav-list-item"> | ||
<%= link("Clips", to: @podcast.clips_url, title: "Clips from #{@podcast.name}", alt: "#{@podcast.name} Clips") %> | ||
</li> | ||
<% end %> | ||
<li class={"subnav-list-item #{SharedHelpers.active_class(@conn, "recommended")}"}> | ||
<%= link("Recommended", to: ~p"/#{@podcast.slug}/recommended" <> "#feed", title: "Recommended episodes of #{@podcast.name}", alt: "Recommended Episodes") %> | ||
</li> | ||
<li class={"subnav-list-item #{SharedHelpers.active_class(@conn, "popular")}"}> | ||
<%= link("Popular", to: ~p"/#{@podcast.slug}/popular" <> "#feed", title: "Popular episodes of #{@podcast.name}", alt: "Popular Episodes") %> | ||
</li> | ||
<li class="subnav-list-item subnav-list-item--right"> | ||
<%= link("🙏 Request!", to: ~p"/request/#{@podcast.slug}", title: "Request an episode of #{@podcast.name}", alt: "Request an Episode") %> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
<%= if Enum.any?(@page) do %> | ||
<%= render_many(@page, EpisodeView, "_item.html") %> | ||
<%= render(SharedView, "_more_button.html", assigns) %> | ||
<% else %> | ||
<p class="feed-note">Nothing to see here. Move along.</p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
priv/repo/migrations/20240813144053_add_youtube_urls_to_podcasts.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
defmodule Changelog.Repo.Migrations.AddYoutubeUrlsToPodcasts do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:podcasts) do | ||
add :youtube_url, :string | ||
add :clips_url, :string | ||
remove :chartable_id | ||
end | ||
end | ||
end |