]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2501 fix alternate colors of rows
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 6 Feb 2013 18:52:27 +0000 (19:52 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 6 Feb 2013 18:52:27 +0000 (19:52 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/test/_testcase_working_view.html.erb

index c44b7702903eb74902178ca66c9549a1416bc013..f3a2f968311d14594da25561e1fdbd82260fbdcd 100644 (file)
@@ -12,7 +12,9 @@
       </tr>
       </thead>
       <tbody>
-      <% @test_case.coverageBlocks.sort_by{|cover| cover.testable.component.name}.each do |cover| %>
+      <% @test_case.coverageBlocks.sort_by{|cover| cover.testable.component.name}.each do |cover|
+          reset_cycle
+      %>
       <tr class="<%= cycle("even", "odd") -%>">
         <td>
           <a href="<%= ApplicationController.root_context -%>/resource/index/<%= cover.testable.component.key -%>?display_title=true&tab=coverage&coverage_filter=lines_covered_per_test&test_case_filter=<%= @test -%>"