1
0
Fork 0
oldhaven/app/views/artist/_page.html.haml

29 lines
939 B
Plaintext
Raw Normal View History

2011-09-09 22:13:02 +00:00
- if @loading
.alert-message.warning
%p= I18n.t 'search.loading'
2011-09-08 01:48:33 +00:00
.row.artist-info
.span4.columns.pic
2011-09-09 22:13:02 +00:00
= image_tag @artist[:artist][:pic] unless @artist[:artist][:pic].nil?
2011-09-08 01:48:33 +00:00
.span7.columns.desc
2011-09-09 22:13:02 +00:00
%h2= @artist[:artist][:name]
= @artist[:artist][:desc] unless @artist[:artist][:desc].nil?
2011-09-08 01:48:33 +00:00
2011-09-09 22:13:02 +00:00
- @artist[:albums].each do |album|
2011-09-08 01:48:33 +00:00
.row.album
.span4.columns.art
%img{ :src => album[:pic] }
.button-container
2011-09-15 08:52:29 +00:00
%a.btn.add-album{ :'data-album-id' => album[:id] }= I18n.t 'player.add'
2011-09-08 01:48:33 +00:00
.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]
2011-09-09 22:13:02 +00:00
%td.song-duration= track[:duration]
- album[:tracks][:bonus].each do |track|
%tr
%td.song-title= track[:name]
%td.song-duration= track[:duration]