Working search! Weee!

This commit is contained in:
magnolia-fan
2011-09-10 02:13:02 +04:00
parent 16703a87ec
commit fe7737574d
14 changed files with 349 additions and 344 deletions
+2
View File
@@ -0,0 +1,2 @@
.alert-message.error
%p Something very bad happened, sorry :(
@@ -1,11 +1,15 @@
- if @loading
.alert-message.warning
%p Artist info is loading for the first time. Please, be patient! :)
.row.artist-info
.span4.columns.pic
%img{ :src => @data[:artist][:pic] }
= image_tag @artist[:artist][:pic] unless @artist[:artist][:pic].nil?
.span7.columns.desc
%h2= @data[:artist][:name]
= @data[:artist][:desc]
%h2= @artist[:artist][:name]
= @artist[:artist][:desc] unless @artist[:artist][:desc].nil?
- @data[:albums].each do |album|
- @artist[:albums].each do |album|
.row.album
.span4.columns.art
%img{ :src => album[:pic] }
@@ -17,4 +21,4 @@
- album[:tracks][:album].each do |track|
%tr
%td.song-title= track[:name]
%td.song-duration= track[:duration]
%td.song-duration= track[:duration]
+12
View File
@@ -0,0 +1,12 @@
.alert-message.warning
%p Made a typo?
%ul.suggestions
- @suggestions.each do |artist|
%li
%a.data.artist= artist[:name]
 (
= artist[:type]
)
%br
%p= artist[:desc]