From: Jean-Baptiste Lievremont Date: Tue, 8 Apr 2014 10:11:11 +0000 (+0200) Subject: SONAR-5123 Display name instead of login for comment author (if available) X-Git-Tag: 4.3~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb063fd7f1120b08167e2fe4572e4b422a928f93;p=sonarqube.git SONAR-5123 Display name instead of login for comment author (if available) --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/issues/_issues_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/issues/_issues_list.html.erb index 05ada28c9a7..15719704de4 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/issues/_issues_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/widgets/issues/_issues_list.html.erb @@ -39,10 +39,11 @@ <%= h truncate(issue.message, :length => 100) -%> - <% if last_comment %> + <% if last_comment && last_comment.userLogin() %>
-  <%= last_comment.userLogin() -%> : + <% commentAuthor = results.user(last_comment.userLogin()) %> +  <%= h( commentAuthor.nil? ? last_comment.userLogin() : commentAuthor.name() ) -%> : <%= Internal.text.markdownToHtml(last_comment.markdownText) -%>
<% end %>