diff --git a/app/views/people/index.html.haml b/app/views/people/index.html.haml index 07cb6b73f..9a7d7d886 100644 --- a/app/views/people/index.html.haml +++ b/app/views/people/index.html.haml @@ -5,16 +5,32 @@ - content_for :page_title do = t('search') -.span-15.prepend-5.last - %h2 - -if params[:q].blank? +.span-24.last + - if params[:q].blank? + %h2 =t('.no_results') - -else + - else + %h2#search_title =t('.results_for') - %u= params[:q] + %span.term + = params[:q] - %ul{:class => 'stream people', :id => 'people_stream'} - - for hash in @hashes - = render :partial => 'people/person', :locals => hash - = will_paginate @people +.span-15.append-1 + + - if @hashes.empty? + %p + =t('.no_one_found') + + - else + %ul{:class => 'stream people', :id => 'people_stream'} + - for hash in @hashes + = render :partial => 'people/person', :locals => hash + + = will_paginate @people + +.span-8.last + %h4 + = t('.couldnt_find_them_send_invite') + = render "shared/invitations", :invites => @invites + diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 88e4ae0dd..e6b6f22ec 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -314,6 +314,8 @@ en: index: results_for: "search results for" no_results: "Hey! You need to search for something." + couldnt_find_them_send_invite: "Couldn't find them? Send an invite!" + no_one_found: "...and no one was found." webfinger: fail: "Sorry, we couldn't find %{handle}." show: diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index e145d88ba..ecb30ffc2 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -1984,3 +1984,11 @@ h3,h4 h4 :color #666 :color #666 + +#search_title + :font + :weight 200 + + .term + :font + :weight bold