diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-02-04 16:01:48 +0100 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-02-04 16:03:23 +0100 |
commit | 5c6c22c2820f420428cb308a22c1a5262d0295e9 (patch) | |
tree | bab64b9f919ddbca9fa29b5992b3f5303e5bc0a1 | |
parent | 2510d3b63142c410106a5b6b850b2ee99e81f7ec (diff) | |
download | sonarqube-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.erb | 6 |
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 %> |