From 63b25e67c29371eda48cde0413be99d6f8a21585 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 4 Jun 2013 16:27:30 +0200 Subject: [PATCH] SONAR-4303 display qualifier icon --- .../src/main/webapp/WEB-INF/app/helpers/application_helper.rb | 1 - .../src/main/webapp/WEB-INF/app/views/issue/_show.html.erb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index 732cfb2edab..9d7bd8d4991 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -93,7 +93,6 @@ module ApplicationHelper end end - # TODO this method should be moved in resourceable.rb def qualifier_icon(object) qualifier=(object.respond_to?('qualifier') ? object.qualifier : object.to_s) if qualifier 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 80481b8423d..8bbd6ce76fd 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 @@ -11,6 +11,7 @@ <% end %> <% if component %> + <%= qualifier_icon(component) -%> <%= h component.longName() -%> <% else %> -- 2.39.5