From 3556204753a304596f98b345cf3482574a10fe7f Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 30 Sep 2012 18:14:24 +0200 Subject: SONAR-3802 do not highlight the last breadcrumb item --- .../main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sonar-server/src/main/webapp/WEB-INF') 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 4a4d32ade31..df4c519d4e3 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 @@ -16,16 +16,12 @@ resources.insert(0, s.project) s=s.parent end - - items_count = resources.size - items_count+=1 if @review %>
  • <%= message("qualifiers.#{resources[0].qualifier}") -%>
  • <% resources.each_with_index do |resource, index| - css_class=(index==items_count-1 ? 'selected' : '') %> -
  • +
  • <%= qualifier_icon(resource) -%>   <%= link_to(h(resource.name), @@ -39,13 +35,13 @@ # ======== Path for review ======== if @review %> -
  • +
  • <%= link_to message('review') + ' #' + @review.id.to_s -%>
  • <% end %> -
  •  
  • +
  •  
  • <% end %> \ No newline at end of file -- cgit v1.2.3