Add an Avatar Service Registry to Djblets

Review Request #7844 — Created Jan. 6, 2016 and submitted — Latest diff uploaded

Information

Djblets
release-0.10.x
5146fb6...

Reviewers

The avatar services registry is a new object for managing avatar
services, which are defined to provide multiple ways of displaying
users' avatars. Currently, the only supported service is the Gravatar
(https://gravatar.com) service.

Avatars support the srcset attribute for <img> tags. In browsers
where it is not supported, a polyfill is used.

  • Ran unit tests
  • Used this with an upcoming patch in Review Board.
  • Tested the srcset polyfill in IE11 with Review Board.
djblets/avatars/__init__.py
djblets/avatars/errors.py
djblets/avatars/registry.py
djblets/avatars/tests.py
djblets/avatars/services/__init__.py
djblets/avatars/services/base.py
djblets/avatars/services/gravatar.py
djblets/avatars/templates/avatars/avatar.html
djblets/registries/registry.py
djblets/static/djblets/js/jquery.gravy.retina.js
djblets/util/templatetags/djblets_images.py
docs/djblets/coderef/index.rst
docs/djblets/guides/index.rst
docs/djblets/guides/avatars/index.rst
docs/djblets/guides/avatars/writing-avatar-services.rst
docs/djblets/guides/registries/writing-registries.rst
Loading...