added invite link to search page
This commit is contained in:
parent
6f62161442
commit
fd2cbc1cf4
3 changed files with 35 additions and 9 deletions
|
|
@ -5,16 +5,32 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('search')
|
= t('search')
|
||||||
|
|
||||||
.span-15.prepend-5.last
|
.span-24.last
|
||||||
%h2
|
|
||||||
- if params[:q].blank?
|
- if params[:q].blank?
|
||||||
|
%h2
|
||||||
=t('.no_results')
|
=t('.no_results')
|
||||||
- else
|
- else
|
||||||
|
%h2#search_title
|
||||||
=t('.results_for')
|
=t('.results_for')
|
||||||
%u= params[:q]
|
%span.term
|
||||||
|
= params[:q]
|
||||||
|
|
||||||
|
|
||||||
|
.span-15.append-1
|
||||||
|
|
||||||
|
- if @hashes.empty?
|
||||||
|
%p
|
||||||
|
=t('.no_one_found')
|
||||||
|
|
||||||
|
- else
|
||||||
%ul{:class => 'stream people', :id => 'people_stream'}
|
%ul{:class => 'stream people', :id => 'people_stream'}
|
||||||
- for hash in @hashes
|
- for hash in @hashes
|
||||||
= render :partial => 'people/person', :locals => hash
|
= render :partial => 'people/person', :locals => hash
|
||||||
|
|
||||||
= will_paginate @people
|
= will_paginate @people
|
||||||
|
|
||||||
|
.span-8.last
|
||||||
|
%h4
|
||||||
|
= t('.couldnt_find_them_send_invite')
|
||||||
|
= render "shared/invitations", :invites => @invites
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -314,6 +314,8 @@ en:
|
||||||
index:
|
index:
|
||||||
results_for: "search results for"
|
results_for: "search results for"
|
||||||
no_results: "Hey! You need to search for something."
|
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:
|
webfinger:
|
||||||
fail: "Sorry, we couldn't find %{handle}."
|
fail: "Sorry, we couldn't find %{handle}."
|
||||||
show:
|
show:
|
||||||
|
|
|
||||||
|
|
@ -1984,3 +1984,11 @@ h3,h4
|
||||||
h4
|
h4
|
||||||
:color #666
|
:color #666
|
||||||
:color #666
|
:color #666
|
||||||
|
|
||||||
|
#search_title
|
||||||
|
:font
|
||||||
|
:weight 200
|
||||||
|
|
||||||
|
.term
|
||||||
|
:font
|
||||||
|
:weight bold
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue