[openstreetmap-website] Gravatar support (#131)

Paweł Paprota notifications at github.com
Tue Oct 16 15:02:43 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

This option is going to be useful pretty soon - I would like to propose (in another pull request) moving user image to the left and making it much bigger (256x256 looks nice).

Also this could include removing Paperclip styles (sizes) and going with a simple config-file based definition of :small and :large for thumbnail sizes.

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


More information about the rails-dev mailing list