diff options
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/js/components/common/handlebars-extensions.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/common/handlebars-extensions.js b/server/sonar-web/src/main/js/components/common/handlebars-extensions.js index 274bfd24c55..46d0a78b18a 100644 --- a/server/sonar-web/src/main/js/components/common/handlebars-extensions.js +++ b/server/sonar-web/src/main/js/components/common/handlebars-extensions.js @@ -568,10 +568,11 @@ }); Handlebars.registerHelper('avatarHelper', function (email, size) { + // double the size for high pixel density screens var emailHash = window.md5((email || '').trim()), url = ('' + window.SS.lf.gravatarServerUrl) .replace('{EMAIL_MD5}', emailHash) - .replace('{SIZE}', size * 2); // double the size for high pixel density screens + .replace('{SIZE}', size * 2); return new Handlebars.SafeString( '<img class="rounded" src="' + url + '" width="' + size + '" height="' + size + '" alt="' + email + '">' ); |