Skip to content
Extraits de code Groupes Projets
Valider f3183a11 rédigé par Ilya Zhitomirskiy's avatar Ilya Zhitomirskiy
Parcourir les fichiers

message explaining that we're populating things in the background

parent 2d4e6e49
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -66,8 +66,8 @@ class ServicesController < ApplicationController
def finder
@finder = true
service = current_user.services.where(:type => "Services::#{params[:provider].titleize}").first
@friends = service ? service.finder(:remote => params[:remote]).paginate( :page => params[:page], :per_page => 15) : []
@service = current_user.services.where(:type => "Services::#{params[:provider].titleize}").first
@friends = @service ? @service.finder(:remote => params[:remote]).paginate( :page => params[:page], :per_page => 15) : []
end
def inviter
......
......@@ -20,6 +20,12 @@
= render :partial => 'remote_friend', :collection => @friends, :as => :friend
= will_paginate @friends
- elsif @service
.no_contacts
%br
%br
%h4
= t('.fetching_contacts', :service => params[:provider].titleize)
- else
.no_contacts
= link_to(image_tag("social_media_logos/facebook-48x48.png"), "/auth/facebook")
......
......@@ -717,6 +717,7 @@ en:
join_me_on_diaspora: "Join me on DIASPORA*"
click_link_to_accept_invitation: "Follow this link to accept your invitation"
finder:
fetching_contacts: "Diaspora is populating your %{service} friends please check back in a few minutes."
service_friends: "%{service} Friends"
no_friends: "No Facebook friends found."
remote_friend:
......
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