Skip to content
Extraits de code Groupes Projets
Valider f8400389 rédigé par Sarah Mei's avatar Sarah Mei
Parcourir les fichiers

Merge branch 'master' of github.com:diaspora/diaspora

parents 81ef7386 d0055cee
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
%p %p
Hello #{@resource.email}! Hello #{@resource.email}!
%p %p
#{(@resource.inviters.count == 1)? ( @resource.inviters.first.real_name + " has") : (@resource.inviters.map{|inv| inv.real_name}.join(",") + " have")} invited you to #{root_url}, you can accept it through the link below. #{(@resource.inviters.count == 1)? ( @resource.inviters.first.real_name + " has") : (@resource.inviters.map{|inv| inv.real_name + " (#{inv.diaspora_handle})"}.join(",") + " have")} invited you to join Diaspora at #{root_url}, you can accept it through the link below.
- @resource.inviters.each do |inv| - @resource.inviters.each do |inv|
- if @resource.invite_messages[inv.id.to_s] - if @resource.invite_messages[inv.id.to_s]
= "#{inv.real_name}:" = "#{inv.real_name}:"
......
.span-12.last .span-12.last
.modal_title_bar .modal_title_bar
%h4 Send invitation %h4 Invite someone to join Diaspora!
%i if they accept, they will be added to the aspect you invited them
= form_for User.new, :url => invitation_path(User) do |invite| = form_for User.new, :url => invitation_path(User) do |invite|
%p %p
= invite.label :email = invite.label :email
...@@ -11,8 +12,9 @@ ...@@ -11,8 +12,9 @@
= invite.select(:aspects, @aspects_dropdown_array) = invite.select(:aspects, @aspects_dropdown_array)
- else - else
= invite.select(:aspects, @aspects_dropdown_array, :selected => @aspect.id) = invite.select(:aspects, @aspects_dropdown_array, :selected => @aspect.id)
Message: Message:
= invite.text_area :invite_messages = invite.text_area :invite_messages, :value => ""
%p= invite.submit "Send an invitation" %p= invite.submit "Send an invitation"
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
= person_image_link(@person) = person_image_link(@person)
%ul %ul
-unless @posts.first.nil? -unless @posts.first.nil?
%li
%b.small= @person.diaspora_handle
%li %li
%i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first)) %i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))
- if @person != current_user.person && current_user.friends.include?(@person) - if @person != current_user.person && current_user.friends.include?(@person)
......
- unless @aspect == :all %h4 Invites
%h4 Invites = link_to "Invite a friend", "#invite_user_pane", :class => "invite_user_button", :title => "Invite a friend"
= link_to "Invite a friend", "#invite_user_pane", :class => "invite_user_button", :title => "Invite a friend" = "(#{invites} left)"
= "(#{invites} left)" %br
%br .yo{ :style => "display:none;"}
.yo{ :style => "display:none;"} #invite_user_pane
#invite_user_pane = render "invitations/new"
= render "invitations/new"
...@@ -11,7 +11,7 @@ module HCard ...@@ -11,7 +11,7 @@ module HCard
{:given_name => doc.css(".given_name").text, {:given_name => doc.css(".given_name").text,
:family_name => doc.css(".family_name").text, :family_name => doc.css(".family_name").text,
:url => doc.css("#pod_location").text, :url => doc.css("#pod_location").text,
:photo => doc.css(".photo[src]").text} :photo => doc.css(".photo[src]").attribute('src').text }
end end
def self.find url def self.find url
......
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