img tag in hcard

This commit is contained in:
danielvincent 2010-10-05 20:22:13 -07:00
parent d519e46f4d
commit dc88110716
4 changed files with 13 additions and 3 deletions

View file

@ -116,6 +116,7 @@ GEM
rack (>= 1.0.0) rack (>= 1.0.0)
rack-test (>= 0.5.4) rack-test (>= 0.5.4)
selenium-webdriver (>= 0.0.3) selenium-webdriver (>= 0.0.3)
columnize (0.3.1)
crack (0.1.8) crack (0.1.8)
cucumber (0.9.0) cucumber (0.9.0)
builder (~> 2.1.2) builder (~> 2.1.2)
@ -151,6 +152,7 @@ GEM
i18n (0.4.1) i18n (0.4.1)
json (1.4.6) json (1.4.6)
json_pure (1.4.6) json_pure (1.4.6)
linecache (0.43)
mail (2.2.6.1) mail (2.2.6.1)
activesupport (>= 2.3.6) activesupport (>= 2.3.6)
mime-types mime-types
@ -199,6 +201,7 @@ GEM
rake (>= 0.8.4) rake (>= 0.8.4)
thor (~> 0.14.0) thor (~> 0.14.0)
rake (0.8.7) rake (0.8.7)
redgreen (1.2.2)
rest-client (1.6.1) rest-client (1.6.1)
mime-types (>= 1.16) mime-types (>= 1.16)
rspec (2.0.0.beta.22) rspec (2.0.0.beta.22)
@ -214,6 +217,11 @@ GEM
rspec-rails (2.0.0.beta.17) rspec-rails (2.0.0.beta.17)
rspec (>= 2.0.0.beta.14) rspec (>= 2.0.0.beta.14)
webrat (>= 0.7.0) webrat (>= 0.7.0)
ruby-debug (0.10.3)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.3.0)
ruby-debug-base (0.10.3)
linecache (>= 0.3)
rubyzip (0.9.4) rubyzip (0.9.4)
selenium-webdriver (0.0.28) selenium-webdriver (0.0.28)
ffi (>= 0.6.1) ffi (>= 0.6.1)
@ -270,9 +278,11 @@ DEPENDENCIES
pubsubhubbub pubsubhubbub
rails (= 3.0.0) rails (= 3.0.0)
redfinger! redfinger!
redgreen
roxml! roxml!
rspec (>= 2.0.0.beta.17) rspec (>= 2.0.0.beta.17)
rspec-rails (= 2.0.0.beta.17) rspec-rails (= 2.0.0.beta.17)
ruby-debug
sprinkle! sprinkle!
thin thin
webmock webmock

View file

@ -36,7 +36,7 @@
<dl class="entity_photo"> <dl class="entity_photo">
<dt>Photo</dt> <dt>Photo</dt>
<dd> <dd>
<span class="photo"><%= @person.profile.image_url%></span> <img class="photo avatar" src="<%= @person.profile.image_url%>" width="100" height="100"/>
</dd> </dd>
</dl> </dl>
<dl class="entity_note"> <dl class="entity_note">

View file

@ -30,7 +30,7 @@ module Diaspora
<generator uri="http://joindiaspora.com/">Diaspora</generator> <generator uri="http://joindiaspora.com/">Diaspora</generator>
<id>#{@user.public_url}.atom</id> <id>#{@user.public_url}.atom</id>
<title>#{@user.real_name}'s Public Feed</title> <title>#{@user.real_name}'s Public Feed</title>
<subtitle>its a stream</subtitle> <subtitle>Posts from Diaspora</subtitle>
<updated>#{Time.now.xmlschema}</updated> <updated>#{Time.now.xmlschema}</updated>
<author> <author>
<name>#{@user.real_name}</name> <name>#{@user.real_name}</name>

View file

@ -8,6 +8,6 @@ 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")} :photo => doc.css(".photo").src}
end end
end end