From ee3d55716baf2a3e8cee0f35f4f73bd42aa1fc20 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 23 Mar 2017 17:56:23 +0100 Subject: [PATCH] SONAR-8969 use avatar field --- .../templates/issues-issue-filter-form.hbs | 2 +- .../issue/templates/issue-changelog.hbs | 2 +- .../js/components/issue/templates/issue.hbs | 6 ++-- .../js/helpers/handlebars/avatarHelperNew.js | 36 +++++++++++++++++++ 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 server/sonar-web/src/main/js/helpers/handlebars/avatarHelperNew.js diff --git a/server/sonar-web/src/main/js/apps/issues/templates/issues-issue-filter-form.hbs b/server/sonar-web/src/main/js/apps/issues/templates/issues-issue-filter-form.hbs index 58764e59543..f18f6845d3a 100644 --- a/server/sonar-web/src/main/js/apps/issues/templates/issues-issue-filter-form.hbs +++ b/server/sonar-web/src/main/js/apps/issues/templates/issues-issue-filter-form.hbs @@ -37,7 +37,7 @@ {{#if assignee}} {{t "assigned_to"}} - {{#ifShowAvatars}}{{avatarHelper assigneeEmail 16}}{{/ifShowAvatars}} + {{#ifShowAvatars}}{{avatarHelperNew assigneeAvatar 16}}{{/ifShowAvatars}} {{assigneeName}} {{else}} diff --git a/server/sonar-web/src/main/js/components/issue/templates/issue-changelog.hbs b/server/sonar-web/src/main/js/components/issue/templates/issue-changelog.hbs index e94ba28c14a..7ba2e7c2937 100644 --- a/server/sonar-web/src/main/js/components/issue/templates/issue-changelog.hbs +++ b/server/sonar-web/src/main/js/components/issue/templates/issue-changelog.hbs @@ -19,7 +19,7 @@ {{dt creationDate}} {{#if userName}} - {{#ifShowAvatars}}{{avatarHelper email 16}}{{/ifShowAvatars}} + {{#ifShowAvatars}}{{avatarHelperNew avatar 16}}{{/ifShowAvatars}} {{/if}} {{userName}} diff --git a/server/sonar-web/src/main/js/components/issue/templates/issue.hbs b/server/sonar-web/src/main/js/components/issue/templates/issue.hbs index a828ecf5e3e..1af970cc4d0 100644 --- a/server/sonar-web/src/main/js/components/issue/templates/issue.hbs +++ b/server/sonar-web/src/main/js/components/issue/templates/issue.hbs @@ -80,7 +80,7 @@