Async parallel to retrieve artist's top albums as well

This commit is contained in:
Sahat Yalkabov
2013-12-10 00:32:23 -05:00
parent 96a1892234
commit b72599151a
2 changed files with 63 additions and 26 deletions
+14 -6
View File
@@ -23,23 +23,31 @@ block content
li
small.text-primary
i.fa.fa-users
strong Listeners:
| #{artist.stats.listeners}
| Listeners: #{artist.stats.listeners}
li
small.text-primary
i.fa.fa-headphones
strong Scrobbles:
| #{artist.stats.playcount}
| Scrobbles: #{artist.stats.playcount}
p
img(src='#{artist.image}')
p
for tag in artist.tags
span.label.label-primary
i.fa.fa-tag
| #{tag.name}
| 
p!= artist.bio
strong Similar Artists
.panel.panel-default
.panel-heading Biography
.panel-body
!= artist.bio
h4 Top Albums
for album in artist.topAlbums
album
h4 Similar Artists
ul.list
for similarArtist in artist.similar
li