From 3625a5f2f1f68cf33cc6f0564b1c595a7900ffdc Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 9 Dec 2010 16:51:58 -0800 Subject: [PATCH] display a basic message for when nothing was searched for --- app/views/people/index.html.haml | 7 +++++-- config/locales/diaspora/en.yml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/people/index.html.haml b/app/views/people/index.html.haml index d3cf5ac5e..a0560df61 100644 --- a/app/views/people/index.html.haml +++ b/app/views/people/index.html.haml @@ -4,8 +4,11 @@ .span-15.prepend-5.last %h2 - =t('.results_for') - %u= params[:q] + -if params[:q].blank? + =t('.no_results') + -else + =t('.results_for') + %u= params[:q] %ul{:class => 'stream people', :id => 'people_stream'} - for hash in @hashes diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 21123b46a..3e6dd7c03 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -308,6 +308,7 @@ en: add_contact: "add contact" index: results_for: "search results for" + no_results: "Hey! You need to search for something." webfinger: fail: "Sorry, we couldn't find %{handle}." show: