From: Simon Brandhof Date: Sun, 30 Sep 2012 16:14:24 +0000 (+0200) Subject: SONAR-3802 do not highlight the last breadcrumb item X-Git-Tag: 3.3~168 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3556204753a304596f98b345cf3482574a10fe7f;p=sonarqube.git SONAR-3802 do not highlight the last breadcrumb item --- 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 diff --git a/sonar-server/src/main/webapp/images/bc-blue-gray.png b/sonar-server/src/main/webapp/images/bc-blue-gray.png deleted file mode 100644 index c3df1379ad4..00000000000 Binary files a/sonar-server/src/main/webapp/images/bc-blue-gray.png and /dev/null differ diff --git a/sonar-server/src/main/webapp/images/bc-gray-blue.png b/sonar-server/src/main/webapp/images/bc-gray-blue.png deleted file mode 100644 index e9af6985877..00000000000 Binary files a/sonar-server/src/main/webapp/images/bc-gray-blue.png and /dev/null differ diff --git a/sonar-server/src/main/webapp/images/bc-gray.png b/sonar-server/src/main/webapp/images/bc-gray.png index c5bee91c518..fbdf65a2ece 100644 Binary files a/sonar-server/src/main/webapp/images/bc-gray.png and b/sonar-server/src/main/webapp/images/bc-gray.png differ diff --git a/sonar-server/src/main/webapp/stylesheets/layout.css b/sonar-server/src/main/webapp/stylesheets/layout.css index ed42c8e1e80..0779f5c5ab3 100644 --- a/sonar-server/src/main/webapp/stylesheets/layout.css +++ b/sonar-server/src/main/webapp/stylesheets/layout.css @@ -119,30 +119,11 @@ body, a { padding: 0 10px 0 5px; } -#crumbs > ul > li.first-selected { - background: #4B9FD5; - border-left: 2px solid #4B9FD5; - border-bottom: 1px solid #4B9FD5; - padding: 0 10px 0 5px; -} - -#crumbs > ul > li.selected { - background: #4B9FD5 url("../images/bc-gray-blue.png") no-repeat left; -} - -#crumbs > ul > li.last { - background: #EFEFEF url("../images/bc-blue-gray.png") no-repeat left; - border-bottom: #CCC; -} - #crumbs > ul > li img { vertical-align: text-bottom; margin-right: -5px; } -#crumbs > ul > li.selected a, #crumbs > ul > li.first-selected a { - color: #FFF; -} #crumbs > ul > li a { text-decoration: none; }