display a basic message for when nothing was searched for

This commit is contained in:
maxwell 2010-12-09 16:51:58 -08:00
parent 10ca0688f5
commit 3625a5f2f1
2 changed files with 6 additions and 2 deletions

View file

@ -4,8 +4,11 @@
.span-15.prepend-5.last .span-15.prepend-5.last
%h2 %h2
=t('.results_for') -if params[:q].blank?
%u= params[:q] =t('.no_results')
-else
=t('.results_for')
%u= params[:q]
%ul{:class => 'stream people', :id => 'people_stream'} %ul{:class => 'stream people', :id => 'people_stream'}
- for hash in @hashes - for hash in @hashes

View file

@ -308,6 +308,7 @@ en:
add_contact: "add contact" add_contact: "add contact"
index: index:
results_for: "search results for" results_for: "search results for"
no_results: "Hey! You need to search for something."
webfinger: webfinger:
fail: "Sorry, we couldn't find %{handle}." fail: "Sorry, we couldn't find %{handle}."
show: show: