]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4108 Always display the full project name in the resource viewer
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Mon, 4 Feb 2013 15:01:48 +0000 (16:01 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Mon, 4 Feb 2013 15:03:23 +0000 (16:03 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb

index f6990640dc1309b5b0cf0546e369db9a77012077..460bea07a4c77db3e39d2ca44fc441d757674dc2 100644 (file)
@@ -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 %>