[openstreetmap-website] Gravatar support (#131)

Tom Hughes notifications at github.com
Tue Oct 16 15:39:25 GMT 2012


> @@ -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

Thinking about this, we might want to keep the size option because what you haven't done, but need to do, is to fix `app/views/user/api_read.builder` to generate a gravatar URL when appropriate, and that should probably be at a larger size.

For our own images we return them at original size, but I don't think there's any way to do that with gravatar...

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/131/files#r1855603
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20121016/0adb38f6/attachment.html>


More information about the rails-dev mailing list