diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-09-30 18:14:24 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-09-30 18:14:24 +0200 |
commit | 3556204753a304596f98b345cf3482574a10fe7f (patch) | |
tree | 45e610e76b8df42aa1ea0659daf8405174df5e39 /sonar-server/src/main/webapp/WEB-INF | |
parent | 8a4202ca07b467cf99aa0065308aa98a898021f4 (diff) | |
download | sonarqube-3556204753a304596f98b345cf3482574a10fe7f.tar.gz sonarqube-3556204753a304596f98b345cf3482574a10fe7f.zip |
SONAR-3802 do not highlight the last breadcrumb item
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb | 10 |
1 files changed, 3 insertions, 7 deletions
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 %> <li class="first"><%= message("qualifiers.#{resources[0].qualifier}") -%></li> <% resources.each_with_index do |resource, index| - css_class=(index==items_count-1 ? 'selected' : '') %> - <li class="<%= css_class -%>"> + <li> <%= qualifier_icon(resource) -%> <%= link_to(h(resource.name), @@ -39,13 +35,13 @@ # ======== Path for review ======== if @review %> - <li class="selected"> + <li> <%= link_to message('review') + ' #' + @review.id.to_s -%> </li> <% end %> - <li class="last"> </li> + <li> </li> </ul> </div> <% end %>
\ No newline at end of file |