<p>In app/helpers/user_helper.rb:</p>
<pre style='color:#555'>> @@ -29,4 +45,19 @@ def openid_button(name, url)
> :title => t("user.login.openid_providers.#{name}.title")
> )
> end
> +
> + # Gravatar support
> +
> + # See http://en.gravatar.com/site/implement/images/ for details.
> + def user_gravatar_url(user, options = {})
> + options = {:size => 80}.merge! options
> + hash = Digest::MD5::hexdigest(user.email.downcase)
> + url = "http://www.gravatar.com/avatar/#{hash}.jpg?s=#{options[:size]}"
</pre>
<p>Maybe we go crazy and use d=monsterid or d=wavatar? :-) These images look cool, certainly better than the default one... but I guess some people may be offended...</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/131/files#r1856472'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/GL_BcdxKe4HF2aBEXoOA7fYBh8FdbvAHDCh-W2l55yB3SBAC6QX0UoPk5lZh4lCh.gif' height='1' width='1'>