From fabe47ffc83b50609697e1825a656ffe711d3b57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Fri, 26 May 2017 17:15:46 +0200 Subject: [PATCH] remove avatar for system events on issues changelog popup (#2109) --- .../components/issue/popups/ChangelogPopup.js | 20 ++++++++-------- .../__snapshots__/ChangelogPopup-test.js.snap | 23 ++++++++----------- .../main/less/components/bubble-popup.less | 1 + .../src/main/less/components/issues.less | 3 ++- 4 files changed, 22 insertions(+), 25 deletions(-) diff --git a/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js b/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js index c856a2c94c7..7551e9869db 100644 --- a/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js +++ b/server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js @@ -82,7 +82,6 @@ export default class ChangelogPopup extends React.PureComponent { {moment(issue.creationDate).format('LLL')} - {author ? `${translate('created_by')} ${author}` : translate('created')} @@ -93,16 +92,17 @@ export default class ChangelogPopup extends React.PureComponent { {moment(item.creationDate).format('LLL')} - - - {item.userName} - + {item.userName && +

+ + {item.userName} +

} {item.diffs.map(diff => )} diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap index 8934f554418..078a01fc7bf 100644 --- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap @@ -17,9 +17,6 @@ exports[`should render the changelog popup correctly 1`] = ` > March 1, 2017 9:36 AM - @@ -32,20 +29,18 @@ exports[`should render the changelog popup correctly 1`] = ` > March 1, 2017 9:36 AM - - - john.doe - +

+ + john.doe +