aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-02-04 16:01:48 +0100
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-02-04 16:03:23 +0100
commit5c6c22c2820f420428cb308a22c1a5262d0295e9 (patch)
treebab64b9f919ddbca9fa29b5992b3f5303e5bc0a1
parent2510d3b63142c410106a5b6b850b2ee99e81f7ec (diff)
downloadsonarqube-5c6c22c2820f420428cb308a22c1a5262d0295e9.tar.gz
sonarqube-5c6c22c2820f420428cb308a22c1a5262d0295e9.zip
SONAR-4108 Always display the full project name in the resource viewer
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb6
1 files changed, 2 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb
index f6990640dc1..460bea07a4c 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb
@@ -9,11 +9,9 @@
<% if display_title %>
<div id="source_title">
- <%
- selected_project_id = params[:project].to_i
- if @resource.project && selected_project_id != @resource.project.id %>
+ <% if @resource.project %>
<div class="subtitle">
- <%= @resource.ancestor_projects.select{|p| p.id != selected_project_id}.reverse.map{|p| p.name(true)}.join(' / ') -%>
+ <%= @resource.ancestor_projects.reverse.map{|p| p.name(true)}.join(' / ') -%>
</div>
<% end %>
<% if logged_in? %><%= link_to_favourite(@resource) -%><% end %>