2010-05-15 16:34:13 -07:00
|
|
|
= form_tag items_path, :method => :get, :class => 'bp' do
|
2010-05-15 10:47:46 -07:00
|
|
|
= text_field_tag :q, @query
|
|
|
|
= submit_tag 'Search', :name => nil
|
2010-05-15 11:16:42 -07:00
|
|
|
- if @results
|
2010-05-15 15:39:41 -07:00
|
|
|
- if @results.empty?
|
|
|
|
:markdown
|
|
|
|
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
|