From: simonbrandhof Date: Wed, 19 Sep 2012 22:47:57 +0000 (+0200) Subject: SONAR-3802 prefix the breadcrumb with Projects (or Views/Developers) X-Git-Tag: 3.3~274 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f91a2618212ead57c699b17215103d98cf781bc4;p=sonarqube.git SONAR-3802 prefix the breadcrumb with Projects (or Views/Developers) --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb index f5838668d0e..4a4d32ade31 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb @@ -13,26 +13,17 @@ resources=[] s=displayed_resource.last_snapshot while (s!=nil) do - resources< +
  • <%= message("qualifiers.#{resources[0].qualifier}") -%>
  • + <% + resources.each_with_index do |resource, index| + css_class=(index==items_count-1 ? 'selected' : '') %>
  • <%= qualifier_icon(resource) -%>