From 7bb4828946954ea6271ad3e4061d0789ea2a4a25 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 4 Jun 2013 15:27:42 +0200 Subject: [PATCH] SONAR-3755 Improve display of issues on removed component --- .../main/resources/org/sonar/l10n/core.properties | 12 +++++++++++- .../webapp/WEB-INF/app/views/issue/_show.html.erb | 2 +- .../webapp/WEB-INF/app/views/issues/_list.html.erb | 6 +++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index d00d26da9b7..e3f1199d772 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -501,7 +501,7 @@ issue.planned_for=Planned for issue.manual.missing_rule=Missing rule issue.manual.no_rules=No rules. issue.reported_by=Reported by -issue.component_deleted=Removed component +issue.component_deleted=Removed #------------------------------------------------------------------------------ @@ -2220,6 +2220,16 @@ global_role.profileadmin=Quality Profile Administrators global_role.profileadmin.desc=Ability to perform any action on the quality profiles. +#------------------------------------------------------------------------------ +# +# PROJECTS ROLES +# +#------------------------------------------------------------------------------ +projects_role.role=Role Membership For New {0} +projects_role.users=Users +projects_role.groups=Groups + + #------------------------------------------------------------------------------ # # ERRORS HANDLING diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb index a8d23fa9437..80481b8423d 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb @@ -14,7 +14,7 @@ <%= h component.longName() -%> <% else %> - <%= h @issue.componentKey() + '['+ message('issue.component_deleted') + ']' -%> + <%= h @issue.componentKey() %> [<%= message('issue.component_deleted') %>] <% end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb index ef3850ab90e..e6646fe8ffb 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb @@ -80,7 +80,11 @@ <% component = @filter.issues_result.component(issue) %> - <%= h component.name if component -%> + <% if component %> + <%= h component.longName() -%> + <% else %> + <%= h issue.componentKey() %> + <% end %> <%= h @filter.issues_result.user(issue.assignee).name if issue.assignee -%> -- 2.39.5