Skip to content
Extraits de code Groupes Projets
Valider a8ac403e rédigé par zhitomirskiyi's avatar zhitomirskiyi
Parcourir les fichiers

share with action for people who are already on diaspora

parent 605e70f0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -42,6 +42,7 @@ class PeopleController < ApplicationController
def show
@person = Person.where(:id => params[:id]).first
@post_type = :all
@share_with = (params[:share_with] == 'true')
if @person
@incoming_request = current_user.request_from(@person)
......
......@@ -28,6 +28,9 @@
:id => @person.id},
:class => 'share_with button',
:rel => 'facebox'
- if @share_with
= javascript_tag "$(document).ready(function() {jQuery.facebox({ ajax: '#{share_with_path(:id => @person.id)}' });});"
- else
.right
......
......@@ -32,6 +32,14 @@
= t('invitations.new.already_invited')
%br
= link_to t('.resend'), service_inviter_path(:uid => uid, :provider => 'facebook', :invitation_id => friend[:invitation_id])
- elsif friend[:person]
= link_to t('people.show.start_sharing'),
{:controller => "people",
:action => "show",
:id => friend[:person].id,
:share_with => true},
:class => 'button'
- elsif current_user.invites > 0
= form_tag service_inviter_path do
= select_tag(:aspect_id, options_from_collection_for_select(@all_aspects, 'id', 'name'))
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter