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
14 def user_thumbnail_tiny(user, options = {})
15 options[:class] ||= "user_thumbnail_tiny"
17 image_tag user.image.url(:small), options
21 image_tag "openid_small.png", :alt => t('user.login.openid_logo_alt'), :class => "openid_logo"
24 def openid_button(name, url)
26 image_tag("#{name}.png", :alt => t("user.login.openid_providers.#{name}.alt")),
28 :class => "openid_button", :data => { :url => url },
29 :title => t("user.login.openid_providers.#{name}.title")