aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-06-04 16:27:30 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-06-04 16:28:49 +0200
commit63b25e67c29371eda48cde0413be99d6f8a21585 (patch)
treee0e510f21e74c60fea1217dc22717d1629bb7f41 /sonar-server/src/main
parentd60c6660d19f6a3ea2f6bd2b5d3dad87773c05d3 (diff)
downloadsonarqube-63b25e67c29371eda48cde0413be99d6f8a21585.tar.gz
sonarqube-63b25e67c29371eda48cde0413be99d6f8a21585.zip
SONAR-4303 display qualifier icon
Diffstat (limited to 'sonar-server/src/main')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb1
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb1
2 files changed, 1 insertions, 1 deletions
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 %>
<span class="h1">
<% if component %>
+ <%= qualifier_icon(component) -%>
<a href="<%= ApplicationController.root_context -%>/resource/index/<%= component.key() -%>?layout=false&tab=issues"
onclick="window.open(this.href,'resource-<%= component.key().parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;"><%= h component.longName() -%></a>
<% else %>