diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-02-06 17:58:35 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-02-06 17:59:16 +0100 |
commit | 756291ed151f183abea106da0af516da64bb881f (patch) | |
tree | 4eba1600bcd424aa8d980ab2ba3ac539d079686a /sonar-server/src | |
parent | 832ae2cdcc88755e8130dcff00c1bca33ae24a04 (diff) | |
download | sonarqube-756291ed151f183abea106da0af516da64bb881f.tar.gz sonarqube-756291ed151f183abea106da0af516da64bb881f.zip |
SONAR-2501 add tooltips to coverage cells
Diffstat (limited to 'sonar-server/src')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb | 2 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/resource/_index.html.erb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb index cf3cfdf83af..50e25733cea 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb @@ -273,7 +273,7 @@ class ResourceController < ApplicationController if @test_case_filter test_case = @testable.testCaseByName(@test_case_filter) - lines = @testable.coverOfTestCase(test_case).lines + lines = @testable.coverage_block(test_case).lines filter_lines { |line| lines.include?(line.index) && line.after(to) } else filter_lines { |line| line.covered_lines && line.covered_lines > 0 && line.after(to) } diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_index.html.erb index 1395056bad6..2340b6d7a86 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_index.html.erb @@ -103,7 +103,7 @@ <% if @display_coverage %> <% if line.highlighted? %> - <td class="ind <%= hits_status -%>" title="<%= message("number_of_tests_covering_line", {:params => line.covered_lines.to_s}) if line.covered_lines > 0 -%>"> + <td class="ind <%= hits_status -%>" title="<%= message('coverage_viewer.line_covered_by_x_tests', {:params => line.covered_lines.to_s}) if line.covered_lines > 0 -%>"> <% if line.covered_lines > 0 %> <a href="<%= ApplicationController.root_context -%>/test/testable/?sid=<%= @snapshot.id -%>&line=<%= index+1 -%>" onclick="openAccordionItem(this.href, this); return false;"><%= line.covered_lines -%></a> @@ -113,7 +113,7 @@ <% if line.deprecated_conditions_label -%> <%= line.deprecated_conditions_label -%> <% elsif line.conditions && line.conditions>0 -%> - <%= line.covered_conditions -%>/<%= line.conditions -%> + <span title="<%= h message('coverage_viewer.x_covered_branches', {:params => line.covered_conditions.to_s})-%>"><%= line.covered_conditions -%>/<%= line.conditions -%></span> <% end %> </td> <% else %> |