From 3556204753a304596f98b345cf3482574a10fe7f Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 30 Sep 2012 18:14:24 +0200 Subject: [PATCH] SONAR-3802 do not highlight the last breadcrumb item --- .../app/views/layouts/_breadcrumb.html.erb | 10 +++------ .../src/main/webapp/images/bc-blue-gray.png | Bin 188 -> 0 bytes .../src/main/webapp/images/bc-gray-blue.png | Bin 185 -> 0 bytes .../src/main/webapp/images/bc-gray.png | Bin 940 -> 168 bytes .../src/main/webapp/stylesheets/layout.css | 19 ------------------ 5 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 sonar-server/src/main/webapp/images/bc-blue-gray.png delete mode 100644 sonar-server/src/main/webapp/images/bc-gray-blue.png 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 c3df1379ad48d85cf1b8fe220913d02908cd3629..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 188 zcmeAS@N?(olHy`uVBq!ia0vp@KrF_=1|+3_iKzgoW=|K#5R2ZaS2hYZDDbpCOm|zb zX;X?sd7%`0ftIwFwszQsbIu+olw)`N-u1`lb)ntu8pUHB0!%Xm8E(91)l_{lr_zLL zX-tI1S7v7EBMzdK7hG&_xQdlbWYY|BmYV9k_>-Mxi2RoBElj&kcpY=udo1LM>rI7a mkK~g!|G#j;UU4x4L)?dNaX;4iGxh_W!{F)a=d#Wzp$PyEXhehn 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 e9af6985877e79be428b0aea60e69de6321c2684..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 185 zcmeAS@N?(olHy`uVBq!ia0vp^+(0bG!3H9qq$LBX22U5q5RHkwXEq8pDDXI3%y(O` zX;F&x@q;_n8QPyfy^ zWr|0AI2?81=;DNq>VrYqwp$q%OmXt^+<)hs$o=r|Z%Y5Py?QFfSIA%Xk>lS6Hv0-T g`J6_Eq*f3TZ*ffeyQ-G+DbOtpp00i_>zopr08!CLO#lD@ diff --git a/sonar-server/src/main/webapp/images/bc-gray.png b/sonar-server/src/main/webapp/images/bc-gray.png index c5bee91c518298f5a6c24ddda898ac63d969e605..fbdf65a2ece31a670a06fb993fbdff4a49d3c197 100644 GIT binary patch delta 141 zcmV;80CNAV2dDv%BYyyINkl$xJ967*$al!YTv`A;AV z40qq9Sz8ypivaWx0GV^9@PSlS%q)fBcon2UWH3#S!7}m)j@64eQ#G>>FXGxoRcmwy vWv2+FhyjW+5TXi*kUasQfTF7Yd-nqqNM#QheoKe|00004Tx04R}-l+Q~PVHn51vyB)iL11Qk zh@nGBs7w}RMCGo(*tBg~f0Po$?CiU{le4qa%26U(f|ru*d1uDm5$(qdGxK?$AK&MB-{F0M8d)(-JtP5n!+)`oeNpN9=$KUd5g{Bw z9m1$nRNIUs5(A*YW3g*&zK6iSE3JF`|2pc@wweco{XpnPn%OF_?-$t%S!x6jxn9GB zV>-n5I9s0mG3S)W^R9g;*+slad_XlV9{-xSL(M5^phhHa$p&Il0nY11)$ivZJ@w2O z9;EMa>gg`Cdw+ZuX3|P`KXDuJ=QQi?;hMzr8Lc-)+)U3}#_ApRSU90Mu_2E`BZeLy z@VUuI#jpCBqUl7F+xm8CuxHzTOSzmN4ihKG3;jH%k#akyazocV7WAoHSKQ}!Rx!!z z9;28!Q+NLt^%i=CQRraMV9?uuge3Y9MJr5LC?G=~jejCEvNAWuBDOKUXQYlqfF<&; zQ_i}Za~nm<=2;_%#xc`UQIO;h@>h9Pek#w&UuMI_=Bj7Lx~Zwl55AKwue`16d;Oj~ zeU<7)$g3ku)_i46cA(QhcNt?gTvg&V*!}osV3jOTsTC<#Y22+;a(y3J z!UhhXuG%(|?j0gDE>~^N72v`*x)0t~ZOwEZ4u3rX7S5@y!W)WacN{+HDwva& zmd!a*yDXoTB6KA&DQ2i`Es~<^lIyZ1i`mR7v2+{k%&B%yrJi=B=2N-6LFcdb5wP{J zT>km2T;6(4J*)vQ_20m}{Y6d~F-ZUb010qNS#tmY3ljhU3ljkVnw%H_004nWL_t(I zjenKW!41SP2t?5zil7VnF9f*>TtsrpDx25_&k2y8=EBihJKY^KLsh9nR24JB-HC`A z0@#Ie4?9qvOBKrdP=Oy*fkTwRDO$lLn!%&@er6CLBDg;%Z5pM7o-L}Hqc=#KMqr6% tV2V~?h%)d&74V0u;D>eqfb0T*3+%RnX%Gm;t_A=A002ovPDHLkV1mDjwDbS~ 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; } -- 2.39.5