diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-06-02 12:01:46 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-06-02 12:01:54 +0200 |
commit | c0f8ed1eca7185bcb63454ba8757a0290721e1dc (patch) | |
tree | 2cfbe7bd972b0d5de20edbb2bfe80445c521cbe9 /server/sonar-web/src | |
parent | eb6b2031261789c54d1599bc25c6f42e835a867b (diff) | |
download | sonarqube-c0f8ed1eca7185bcb63454ba8757a0290721e1dc.tar.gz sonarqube-c0f8ed1eca7185bcb63454ba8757a0290721e1dc.zip |
fix quality flaws
Diffstat (limited to 'server/sonar-web/src')
-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 + '">' ); |