Player library, unified renderer for artists and playlists
This commit is contained in:
@@ -24,13 +24,13 @@
|
||||
%table.zebra-striped
|
||||
%tr
|
||||
%td
|
||||
%span.label.success.dynamic-playlist{ href: "", 'data-playlist' => "lastfm-top50/#{@artist.id}" }= t('player.set_playlist')
|
||||
%a.playlist-name{ href: "", 'data-playlist' => "lastfm-top50/#{@artist.id}" }= "#{@artist.name}: Last.fm TOP"
|
||||
%span.label.success.set-playlist{ href: "", 'data-playlist' => "lastfm-top50/#{@artist.id}" }= t('player.set_playlist')
|
||||
%a.page-link.playlist-name{ href: "/playlist/lastfm-top50/#{@artist.id}" }= "#{@artist.name}: Last.fm TOP"
|
||||
- @artist.playlists.each do |playlist|
|
||||
%tr
|
||||
- @artist.playlists.each do |playlist|
|
||||
%td
|
||||
%span.label.success.set-playlist{ href: "", 'data-playlist-id' => playlist.id }= t('player.set_playlist')
|
||||
%span.label.success.set-playlist{ href: "", 'data-playlist' => playlist.id }= t('player.set_playlist')
|
||||
%a.playlist-name{ href: "", 'data-playlist-id' => playlist.id }= playlist.name
|
||||
|
||||
- @artist.albums.each do |album|
|
||||
@@ -38,7 +38,7 @@
|
||||
.span4.columns.art
|
||||
%img{ src: album.pic_url }
|
||||
.button-container
|
||||
%a.btn.add-album{ 'data-album-id' => album.id }= t('player.add')
|
||||
%a.btn.add-album{ 'data-tracks' => album.tracks.map(&:id).join(",") }= t('player.add')
|
||||
.span7.columns.tracks
|
||||
%h3{ 'data-album-id' => album.id }
|
||||
= album.name
|
||||
|
||||
Reference in New Issue
Block a user