-
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.
Add Amazon & YouTube Music links to albums
- Loading branch information
1 parent
9029743
commit 59ddb96
Showing
7 changed files
with
51 additions
and
5 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.
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
23 changes: 20 additions & 3 deletions
23
lib/changelog_web/templates/album/_listen_buttons.html.heex
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 |
---|---|---|
@@ -1,7 +1,24 @@ | ||
<div class="show-header-subscribe"> | ||
<div class="show-header-subscribe-buttons"> | ||
<%= link("Spotify", to: spotify_url(@album), class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--spotify", title: "Listen on Spotify") %> | ||
<%= link("Apple Music", to: apple_music_url(@album), class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--apple-music", title: "Listen on Apple Music") %> | ||
<%= link("Bandcamp", to: @album.bandcamp_url, class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--bandcamp", title: "Buy on Bandcamp") %> | ||
<%= link("Spotify", | ||
to: spotify_url(@album), | ||
class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--spotify", | ||
title: "Listen on Spotify") %> | ||
<%= link("Apple Music", | ||
to: apple_music_url(@album), | ||
class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--apple-music", | ||
title: "Listen on Apple Music") %> | ||
<%= link("Amazon Music", | ||
to: amazon_music_url(@album), | ||
class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--amazon-music", | ||
title: "Listen on Amazon Music") %> | ||
<%= link("YouTube Music", | ||
to: youtube_music_url(@album), | ||
class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--youtube-music", | ||
title: "Listen on YouTube Music") %> | ||
<%= link("Bandcamp", | ||
to: @album.bandcamp_url, | ||
class: "show-header-subscribe-buttons-item show-header-subscribe-buttons-item--bandcamp", | ||
title: "Buy on Bandcamp") %> | ||
</div> | ||
</div> |
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