Tool: PEP8 Style Checker Ignored Files: djblets/static/djblets/js/jquery.gravy.retina.js djblets/static/djblets/js/jquery.gravy.util.js Tool: Pyflakes Ignored Files: djblets/static/djblets/js/jquery.gravy.retina.js djblets/static/djblets/js/jquery.gravy.util.js
Add a function for returning the best gravatar URL for the display.
Review Request #7573 — Created Aug. 7, 2015 and submitted
This splits out all the URL computation logic from
into a new
Djblets.getGravatarForDisplay(). This can be used in cases
where the HTML for a piece of UI is being generated and isn't yet part
of the DOM, and can be more efficient than post-processing existing
Tested that existing Gravatars were continuing to work.
Used this function in some code that was building HTML fragments. It
resulted in Retina-friendly Gravatars.
There's no reason to define a variable here now.