added invite link to search page

This commit is contained in:
danielvincent 2010-12-10 18:28:51 -08:00
parent 6f62161442
commit fd2cbc1cf4
3 changed files with 35 additions and 9 deletions

View file

@ -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

View file

@ -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:

View file

@ -1984,3 +1984,11 @@ h3,h4
h4
:color #666
:color #666
#search_title
:font
:weight 200
.term
:font
:weight bold