Make person profile a little bit aware of an incoming request

This commit is contained in:
Raphael 2011-01-31 15:47:01 -08:00
parent 0e2243e620
commit c56eaadfa0
3 changed files with 16 additions and 19 deletions

View file

@ -22,6 +22,14 @@
#author_info #author_info
- unless @contact || current_user.person == @person - unless @contact || current_user.person == @person
.right .right
- if @incoming_request
= link_to t('.incoming_request', :name => truncate(@person.name, :length => 20, :separator => ' ', :omission => '')),
{:controller => "people",
:action => "share_with",
:id => @person.id},
:class => 'share_with button',
:rel => 'facebox'
-else
= link_to t('.start_sharing'), = link_to t('.start_sharing'),
{:controller => "people", {:controller => "people",
:action => "share_with", :action => "share_with",
@ -45,17 +53,6 @@
= @person.diaspora_handle = @person.diaspora_handle
%hr %hr
- unless @contact || current_user.person == @person
- if @incoming_request
.floating
%h3
= link_to t('.incoming_request'),
{:controller => "people",
:action => "share_with",
:id => @person.id},
:class => 'share_with button',
:rel => 'facebox'
- if @posts.count > 0 - if @posts.count > 0
-if @post_type == :photos -if @post_type == :photos
= render 'photos/index', :photos => @posts = render 'photos/index', :photos => @posts

View file

@ -28,7 +28,7 @@
- if @incoming_request - if @incoming_request
.floating .floating
%h3 %h3
= t('.incoming_request') = t('.incoming_request', :name => @person.name)
%h4 %h4
= link_to t('.return_to_aspects'), aspects_manage_path = link_to t('.return_to_aspects'), aspects_manage_path
= t('.to_accept_or_ignore') = t('.to_accept_or_ignore')

View file

@ -365,7 +365,7 @@ en:
fail: "Sorry, we couldn't find %{handle}." fail: "Sorry, we couldn't find %{handle}."
show: show:
no_posts: "no posts to display!" no_posts: "no posts to display!"
incoming_request: "You have an incoming request from this person." incoming_request: "%{name} wants to share with you"
return_to_aspects: "Return to your aspects page" return_to_aspects: "Return to your aspects page"
to_accept_or_ignore: "to accept or ignore it." to_accept_or_ignore: "to accept or ignore it."
does_not_exist: "Person does not exist!" does_not_exist: "Person does not exist!"