2010-10-10 19:18:42 -07:00
|
|
|
- if @items
|
2011-05-13 05:07:20 -07:00
|
|
|
- title "Searching Infinite Closet for \"#{@query}\""
|
2010-10-10 19:18:42 -07:00
|
|
|
- if @items.empty?
|
2010-05-15 15:39:41 -07:00
|
|
|
:markdown
|
2011-05-13 05:20:09 -07:00
|
|
|
We couldn't find any wearables that matched **#{h @query}**. Sorry!
|
2011-05-13 05:07:20 -07:00
|
|
|
|
2010-05-15 15:39:41 -07:00
|
|
|
Are we missing something? To add an item to our database, just
|
|
|
|
[show us a pet who is wearing it][1]. That's it!
|
2011-05-13 05:07:20 -07:00
|
|
|
|
2010-11-15 12:40:34 -08:00
|
|
|
[1]: /
|
2010-05-15 15:39:41 -07:00
|
|
|
- else
|
2010-10-10 19:18:42 -07:00
|
|
|
= will_paginate @items
|
|
|
|
= render @items
|
|
|
|
= will_paginate @items
|
2010-06-08 07:39:23 -07:00
|
|
|
- else
|
2011-08-04 07:01:44 -07:00
|
|
|
#search-info
|
2012-08-09 19:35:30 -07:00
|
|
|
- cache :action_suffix => 'search_help' do
|
|
|
|
#search-help
|
|
|
|
%h2 Find what you're looking for
|
|
|
|
%dl
|
|
|
|
%dt kreludor "altador cup" -background
|
|
|
|
%dd
|
|
|
|
returns any item with the word "kreludor" and the phrase "altador cup"
|
|
|
|
in it, but not the word "background"
|
|
|
|
%dt hat user:owns
|
|
|
|
%dd
|
|
|
|
returns
|
|
|
|
= link_to 'items that you own', your_items_path
|
|
|
|
with the word "hat"
|
|
|
|
%dt blue is:nc
|
|
|
|
%dd returns any NC Mall item with the word "blue" in it
|
|
|
|
%dt collar -is:pb
|
|
|
|
%dd returns any item with the word "collar" in it that isn't from a paint brush
|
|
|
|
%dt species:shoyru
|
|
|
|
%dd returns any item a Shoyru can wear
|
|
|
|
%dt type:hat
|
|
|
|
%dd returns any item that fills a "hat" zone
|
2011-08-04 07:01:44 -07:00
|
|
|
|
2012-08-09 19:35:30 -07:00
|
|
|
- cache 'items#index newest_items' do
|
|
|
|
#search-new-items
|
|
|
|
%h2 Newest items
|
|
|
|
= render @newest_items
|
2011-05-13 05:07:20 -07:00
|
|
|
|
2012-08-09 19:35:30 -07:00
|
|
|
- cache :action_suffix => 'species_search_links' do
|
|
|
|
#species-search-links
|
|
|
|
%h2 Can't decide? Search by species
|
|
|
|
= standard_species_search_links
|
2011-05-13 05:07:20 -07:00
|
|
|
|