message if there was a search, but no results found

This commit is contained in:
Emi Matchu 2010-05-15 18:39:41 -04:00
parent 92996d56f8
commit e305796d53

View file

@ -2,6 +2,15 @@
= text_field_tag :q, @query = text_field_tag :q, @query
= submit_tag 'Search', :name => nil = submit_tag 'Search', :name => nil
- if @results - if @results
= will_paginate @results - if @results.empty?
= render @results :markdown
= will_paginate @results We couldn't find any wearables that matched **#{@query}**. Sorry!
Are we missing something? To add an item to our database, just
[show us a pet who is wearing it][1]. That's it!
[1]: http://impress.openneo.net/
- else
= will_paginate @results
= render @results
= will_paginate @results