Basic setting playlist
This commit is contained in:
@@ -11,29 +11,31 @@
|
||||
%p= @artist.desc.html_safe unless @artist.desc.nil?
|
||||
- unless @artist.artist_links.empty?
|
||||
.service-icons
|
||||
%a.foreign-link{ :href => "http://last.fm/artist/#{@artist.name.gsub(" ", "+")}", :target => '_blank' }
|
||||
%a.foreign-link{ href: "http://last.fm/artist/#{@artist.name.gsub(" ", "+")}", target: '_blank' }
|
||||
= image_tag 'services/lastfm.ico'
|
||||
- @artist.artist_links.each do |service|
|
||||
- if ['wikipedia', 'microblog', 'official_homepage', 'social_network', 'youtube'].include?(service.service)
|
||||
%a.foreign-link{ :href => service.url, :target => '_blank' }
|
||||
%a.foreign-link{ href: service.url, target: '_blank' }
|
||||
= image_tag 'services/'+service.service+(service.service == 'official_homepage' ? '.png' : '.ico')
|
||||
|
||||
.row
|
||||
.span7.offset4
|
||||
%h3 Playlists
|
||||
%table.zebra-striped
|
||||
%tr
|
||||
%td
|
||||
%a{ href: "" } Last.fm TOP
|
||||
- unless @artist.playlists.empty?
|
||||
.row
|
||||
.span7.offset4
|
||||
%h3 Playlists
|
||||
%table.zebra-striped
|
||||
%tr
|
||||
- @artist.playlists.each do |playlist|
|
||||
%td
|
||||
%a.set-playlist{ href: "", 'data-playlist-id' => playlist.id }= playlist.name
|
||||
|
||||
- @artist.albums.each do |album|
|
||||
.row.album
|
||||
.span4.columns.art
|
||||
%img{ :src => album.pic_url }
|
||||
%img{ src: album.pic_url }
|
||||
.button-container
|
||||
%a.btn.add-album{ :'data-album-id' => album.id }= I18n.t 'player.add'
|
||||
%a.btn.add-album{ 'data-album-id' => album.id }= I18n.t 'player.add'
|
||||
.span7.columns.tracks
|
||||
%h3{ :'data-album-id' => album.id }
|
||||
%h3{ 'data-album-id' => album.id }
|
||||
= album.name
|
||||
%small= " ("+album.year.to_s+")"
|
||||
%table.zebra-striped.tracklist
|
||||
@@ -42,4 +44,4 @@
|
||||
%td.song-title= track.name
|
||||
%td.song-duration
|
||||
.s-duration= (track.duration != '0:00' ? track.duration : ' '.html_safe)
|
||||
%span.label.success.s-add{ :'data-album-id' => album.id, :'data-id' => track.id }= I18n.t 'player.add_one'
|
||||
%span.label.success.s-add{ 'data-album-id' => album.id, 'data-id' => track.id }= I18n.t 'player.add_one'
|
||||
|
||||
Reference in New Issue
Block a user