From: Stas Vilchik Date: Thu, 28 May 2015 08:39:24 +0000 (+0200) Subject: SONAR-6579 apply gravatars feedback X-Git-Tag: 5.2-RC1~1797 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=daced6cc12ea041b1de76a2dd7cac286a2fece68;p=sonarqube.git SONAR-6579 apply gravatars feedback --- diff --git a/server/sonar-web/src/main/coffee/components/issue/templates/issue-changelog.hbs b/server/sonar-web/src/main/coffee/components/issue/templates/issue-changelog.hbs index e1cb758c574..fd6f33d2d25 100644 --- a/server/sonar-web/src/main/coffee/components/issue/templates/issue-changelog.hbs +++ b/server/sonar-web/src/main/coffee/components/issue/templates/issue-changelog.hbs @@ -21,7 +21,10 @@ {{#each items}} {{dt creationDate}} - {{userName}} + + {{#ifShowAvatars}}{{avatarHelper email 16}}{{/ifShowAvatars}} + {{userName}} + {{#each diffs}} {{changelog this}}
diff --git a/server/sonar-web/src/main/coffee/components/issue/templates/issue.hbs b/server/sonar-web/src/main/coffee/components/issue/templates/issue.hbs index b27f6b53c81..f5a2d5e2fda 100644 --- a/server/sonar-web/src/main/coffee/components/issue/templates/issue.hbs +++ b/server/sonar-web/src/main/coffee/components/issue/templates/issue.hbs @@ -137,7 +137,8 @@
{{#each comments}}
-
 {{userName}} +
+ {{#ifShowAvatars}}{{avatarHelper email 16}}{{else}}{{/ifShowAvatars}} {{userName}}
{{{show html htmlText}}}
({{fromNow createdAt}})
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 cec8c0c725b..44dc16d5680 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 @@ -573,7 +573,7 @@ .replace('{EMAIL_MD5}', emailHash) .replace('{SIZE}', size); return new Handlebars.SafeString( - '' + email + '' + '' + email + '' ); }); diff --git a/server/sonar-web/src/main/js/components/source-viewer/templates/source-viewer.hbs b/server/sonar-web/src/main/js/components/source-viewer/templates/source-viewer.hbs index 1f4c3ffeb19..123d21e86a2 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/templates/source-viewer.hbs +++ b/server/sonar-web/src/main/js/components/source-viewer/templates/source-viewer.hbs @@ -13,11 +13,7 @@ {{#ifSCMChanged2 ../source line}} -
- {{#gt line 0}} - {{avatarHelper scmAuthor 16}} - {{/gt}} -
+
{{/ifSCMChanged2}} diff --git a/server/sonar-web/src/main/less/components/source.less b/server/sonar-web/src/main/less/components/source.less index c2f8237c638..6e02fe6e7ad 100644 --- a/server/sonar-web/src/main/less/components/source.less +++ b/server/sonar-web/src/main/less/components/source.less @@ -193,6 +193,13 @@ .source-line-scm-inner { max-width: 40px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + + &:before { + content: attr(data-author); + } } .source-line-bar { diff --git a/server/sonar-web/src/main/less/init/misc.less b/server/sonar-web/src/main/less/init/misc.less index e369019dc77..7c51d9d1a62 100644 --- a/server/sonar-web/src/main/less/init/misc.less +++ b/server/sonar-web/src/main/less/init/misc.less @@ -103,6 +103,10 @@ td.spacer-top { padding-top: 8px; } display: inline-block; } +.rounded { + border-radius: 2px; +} + // Background Color