Make person profile a little bit aware of an incoming request
This commit is contained in:
parent
0e2243e620
commit
c56eaadfa0
3 changed files with 16 additions and 19 deletions
|
|
@ -22,6 +22,14 @@
|
|||
#author_info
|
||||
- unless @contact || current_user.person == @person
|
||||
.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'),
|
||||
{:controller => "people",
|
||||
:action => "share_with",
|
||||
|
|
@ -45,17 +53,6 @@
|
|||
= @person.diaspora_handle
|
||||
%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 @post_type == :photos
|
||||
= render 'photos/index', :photos => @posts
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
- if @incoming_request
|
||||
.floating
|
||||
%h3
|
||||
= t('.incoming_request')
|
||||
= t('.incoming_request', :name => @person.name)
|
||||
%h4
|
||||
= link_to t('.return_to_aspects'), aspects_manage_path
|
||||
= t('.to_accept_or_ignore')
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ en:
|
|||
fail: "Sorry, we couldn't find %{handle}."
|
||||
show:
|
||||
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"
|
||||
to_accept_or_ignore: "to accept or ignore it."
|
||||
does_not_exist: "Person does not exist!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue