impress/app/views/items/index.html.haml

17 lines
515 B
Text
Raw Normal View History

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
- if @results
- 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