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,12 +22,20 @@
|
||||||
#author_info
|
#author_info
|
||||||
- unless @contact || current_user.person == @person
|
- unless @contact || current_user.person == @person
|
||||||
.right
|
.right
|
||||||
= link_to t('.start_sharing'),
|
- if @incoming_request
|
||||||
{:controller => "people",
|
= link_to t('.incoming_request', :name => truncate(@person.name, :length => 20, :separator => ' ', :omission => '')),
|
||||||
:action => "share_with",
|
{:controller => "people",
|
||||||
:id => @person.id},
|
:action => "share_with",
|
||||||
:class => 'share_with button',
|
:id => @person.id},
|
||||||
:rel => 'facebox'
|
:class => 'share_with button',
|
||||||
|
:rel => 'facebox'
|
||||||
|
-else
|
||||||
|
= link_to t('.start_sharing'),
|
||||||
|
{:controller => "people",
|
||||||
|
:action => "share_with",
|
||||||
|
:id => @person.id},
|
||||||
|
:class => 'share_with button',
|
||||||
|
:rel => 'facebox'
|
||||||
- if @share_with
|
- if @share_with
|
||||||
= javascript_tag "$(document).ready(function() {jQuery.facebox({ ajax: '#{share_with_path(:id => @person.id)}' });});"
|
= javascript_tag "$(document).ready(function() {jQuery.facebox({ ajax: '#{share_with_path(:id => @person.id)}' });});"
|
||||||
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
|
||||||
|
|
@ -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!"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue