2 def user_image(user, options = {})
3 options[:class] ||= "user_image"
5 image_tag user.image.url(:large), options
8 def user_thumbnail(user, options = {})
9 options[:class] ||= "user_thumbnail"
11 image_tag user.image.url(:small), options
15 image_tag "openid_small.png", :alt => t('user.login.openid_logo_alt'), :class => "openid_logo"
18 def openid_button(name, url)
20 image_tag("#{name}.png", :alt => t("user.login.openid_providers.#{name}.alt")),
22 :class => "openid_button", :data => { :url => url },
23 :title => t("user.login.openid_providers.#{name}.title")