]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6579 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Tue, 2 Jun 2015 08:25:40 +0000 (10:25 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 2 Jun 2015 08:25:51 +0000 (10:25 +0200)
server/sonar-web/src/main/js/components/common/handlebars-extensions.js
server/sonar-web/src/main/js/components/issue/templates/issue-changelog.hbs

index 44dc16d5680e367ccbe87e44e36b18c062c9ccce..274bfd24c557306cecd5dbffcefd6f98e98a88d3 100644 (file)
     var emailHash = window.md5((email || '').trim()),
         url = ('' + window.SS.lf.gravatarServerUrl)
             .replace('{EMAIL_MD5}', emailHash)
-            .replace('{SIZE}', size);
+            .replace('{SIZE}', size * 2); // double the size for high pixel density screens
     return new Handlebars.SafeString(
         '<img class="rounded" src="' + url + '" width="' + size + '" height="' + size + '" alt="' + email + '">'
     );
index fd6f33d2d258068560ee20d76f9cc85e61138155..a50c9de1c8e887ccd6bc4623fd84a5a08daa8d10 100644 (file)
@@ -22,7 +22,9 @@
       <tr>
         <td class="thin text-left text-top" nowrap>{{dt creationDate}}</td>
         <td class="thin text-left text-top" nowrap>
-          {{#ifShowAvatars}}{{avatarHelper email 16}}{{/ifShowAvatars}}
+          {{#if userName}}
+            {{#ifShowAvatars}}{{avatarHelper email 16}}{{/ifShowAvatars}}
+          {{/if}}
           {{userName}}
         </td>
         <td class="text-left text-top">