message if there was a search, but no results found
This commit is contained in:
parent
92996d56f8
commit
e305796d53
1 changed files with 12 additions and 3 deletions
|
@ -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
|
||||||
|
- 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
|
= will_paginate @results
|
||||||
= render @results
|
= render @results
|
||||||
= will_paginate @results
|
= will_paginate @results
|
||||||
|
|
Loading…
Reference in a new issue