Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e9b172ae82
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.399 kb
module TwitterHelper
def twitter_avatar(name, size)
if name.present?
content_tag :div, :class => "avatar" do
link_to "http://twitter.com/#{name}" do
image_tag "http://avatar.statusok.com/#{name}?size=#{size}", :width => "#{size}px", :height => "#{size}px"
end
end
else
content_tag :div, :class => "avatar default" do
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.