diff --git a/app/views/devise/mailer/invitation.html.haml b/app/views/devise/mailer/invitation.html.haml index f7c1c7be5162792a3a758158038878a7bd81404c..7bfe190a69b950f4edf1eadd81c6c5a0bb196b8e 100644 --- a/app/views/devise/mailer/invitation.html.haml +++ b/app/views/devise/mailer/invitation.html.haml @@ -48,7 +48,7 @@ %p Hello #{@resource.email}! %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| - if @resource.invite_messages[inv.id.to_s] = "#{inv.real_name}:" diff --git a/app/views/invitations/_new.haml b/app/views/invitations/_new.haml index 8619562a337f9a99bfb7daf29a19932822b1371a..77b07faa283c07ef7ecb1e0105879fc0dd79fc63 100644 --- a/app/views/invitations/_new.haml +++ b/app/views/invitations/_new.haml @@ -1,7 +1,8 @@ .span-12.last .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| %p = invite.label :email @@ -11,8 +12,9 @@ = invite.select(:aspects, @aspects_dropdown_array) - else = invite.select(:aspects, @aspects_dropdown_array, :selected => @aspect.id) + Message: - = invite.text_area :invite_messages + = invite.text_area :invite_messages, :value => "" %p= invite.submit "Send an invitation" diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index 83e7cf50dd0d4e463065a10e03a12070742edfed..8a76a63a6b7332b970cc65c82e17aaed692cb80b 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -12,6 +12,8 @@ = person_image_link(@person) %ul -unless @posts.first.nil? + %li + %b.small= @person.diaspora_handle %li %i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first)) - if @person != current_user.person && current_user.friends.include?(@person) diff --git a/app/views/shared/_invitations.haml b/app/views/shared/_invitations.haml index b82cca1041d87a73dbb17f4b7229fd77943f50d7..40476eae732831854737e41501736c2343a95760 100644 --- a/app/views/shared/_invitations.haml +++ b/app/views/shared/_invitations.haml @@ -1,8 +1,7 @@ -- unless @aspect == :all - %h4 Invites - = link_to "Invite a friend", "#invite_user_pane", :class => "invite_user_button", :title => "Invite a friend" - = "(#{invites} left)" - %br - .yo{ :style => "display:none;"} - #invite_user_pane - = render "invitations/new" +%h4 Invites += link_to "Invite a friend", "#invite_user_pane", :class => "invite_user_button", :title => "Invite a friend" += "(#{invites} left)" +%br +.yo{ :style => "display:none;"} + #invite_user_pane + = render "invitations/new" diff --git a/lib/hcard.rb b/lib/hcard.rb index e858bdfc6872a24011bde0f3e3567dd85f5e9ab4..1bdd8a70439878ec933f15d4e72e53a59b4a1add 100644 --- a/lib/hcard.rb +++ b/lib/hcard.rb @@ -11,7 +11,7 @@ module HCard {:given_name => doc.css(".given_name").text, :family_name => doc.css(".family_name").text, :url => doc.css("#pod_location").text, - :photo => doc.css(".photo[src]").text} + :photo => doc.css(".photo[src]").attribute('src').text } end def self.find url