<p>This adds support for the popular (e.g. used here on Github) Gravatar service to osm.org.</p>

<p>I added a simple checkbox on the account page instead of trying to hook into the whole user image new/replace/delete magic. Hope this is OK UI-wise.</p>

<p><a target="_blank" href="https://a248.e.akamai.net/camo.github.com/eeab7166a3fb4894295c5b29193082cfb14641ec/687474703a2f2f692e696d6775722e636f6d2f4f35784c582e706e67"><img src="https://a248.e.akamai.net/camo.github.com/eeab7166a3fb4894295c5b29193082cfb14641ec/687474703a2f2f692e696d6775722e636f6d2f4f35784c582e706e67" alt="alt" style="max-width:100%;"></a></p>

<p>One thing I still need to look into is the image size - i.e. how to get image size from Paperclip styles based on style name. Other than that it's up for review.</p>

<hr>

<h4>You can merge this Pull Request by running:</h4>
<pre>  git pull https://github.com/ppawel/openstreetmap-website gravatar-support</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/131'>https://github.com/openstreetmap/openstreetmap-website/pull/131</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Implemented Gravatar support.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li><strong>M</strong> app/controllers/user_controller.rb (13)</li>
  <li><strong>M</strong> app/helpers/user_helper.rb (37)</li>
  <li><strong>M</strong> app/models/user.rb (10)</li>
  <li><strong>M</strong> app/views/user/account.html.erb (9)</li>
  <li><strong>M</strong> config/locales/en.yml (34)</li>
  <li><strong>A</strong> db/migrate/20121012044047_add_use_gravatar_to_users.rb (9)</li>
</ul>

<h4>Patch Links</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/131.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/131.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/131.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/131.diff</a></li>
</ul>


            <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'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_kz5PgHI_Ux2MVRf-7XO2WM.gif' height='1' width='1'>