29 lines
939 B
Plaintext
29 lines
939 B
Plaintext
- if @loading
|
|
.alert-message.warning
|
|
%p= I18n.t 'search.loading'
|
|
.row.artist-info
|
|
.span4.columns.pic
|
|
= image_tag @artist[:artist][:pic] unless @artist[:artist][:pic].nil?
|
|
.span7.columns.desc
|
|
%h2= @artist[:artist][:name]
|
|
= @artist[:artist][:desc] unless @artist[:artist][:desc].nil?
|
|
|
|
|
|
- @artist[:albums].each do |album|
|
|
.row.album
|
|
.span4.columns.art
|
|
%img{ :src => album[:pic] }
|
|
.button-container
|
|
%a.btn.add-album{ :'data-album-id' => album[:id] }= I18n.t 'player.add'
|
|
.span7.columns.tracks
|
|
%h3= album[:name] + " (" + album[:year].to_s + ")"
|
|
%table.zebra-striped.tracklist
|
|
- album[:tracks][:album].each do |track|
|
|
%tr
|
|
%td.song-title= track[:name]
|
|
%td.song-duration= track[:duration]
|
|
- album[:tracks][:bonus].each do |track|
|
|
%tr
|
|
%td.song-title= track[:name]
|
|
%td.song-duration= track[:duration]
|