From 6be284ff24aabb4e766bfc72749ffc8810f765dc Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 5 Feb 2013 17:00:08 +0100 Subject: SONAR-4095 Refactoring of the resource viewer in order to use accordion navigation --- .../sonar/plugins/core/web/tests_viewer.html.erb | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins') diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb index db5484695cc..122fd22b7cc 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb @@ -1,8 +1,8 @@ -
+
<% test_success_density = measure('test_success_density') %> - + <% @@ -13,18 +13,18 @@ tests_display = tests_display + " (+" + format_measure(skipped_tests) + " " + message('test_viewer.skipped') + ")" end %> - + <% test_failures = measure('test_failures') ? format_measure(measure('test_failures')) : "0" test_errors = measure('test_errors') ? format_measure(measure('test_errors')) : "0" %> - + <% test_execution_time = measure('test_execution_time') %> - +
<%= test_success_density ? number_with_precision(test_success_density.value(), :precision => 1) : "100.0" -%>%<%= test_success_density ? number_with_precision(test_success_density.value(), :precision => 1) : "100.0" -%>% <%= message('test_viewer.tests') -%>:<%= tests_display -%><%= tests_display -%> <%= message('test_viewer.failures') -%>/<%= message('test_viewer.errors') -%>:<%= test_failures -%>/<%= test_errors -%><%= test_failures -%>/<%= test_errors -%> <%= message('test_viewer.duration') -%>:<%= test_execution_time ? format_measure(test_execution_time) : "-" -%><%= test_execution_time ? format_measure(test_execution_time) : "-" -%>
@@ -73,7 +73,7 @@ test_cases = test_cases.sort_by { |test_case| test_case[:name] } %> <% if !test_cases.empty? %> - +
@@ -112,24 +112,24 @@ <% if has_covered_lines %> <% end %>
 <%= test_case[:time] -%> ms - <%= number_with_precision(test_case[:covered_lines], :precision => 0) -%> + <%= number_with_precision(test_case[:covered_lines], :precision => 0) -%> - + <% name = test_case[:name] %> <% if test_case[:message] %> - <%= name -%> - + <%= name -%> + <% else %> <%= name -%> <% end %> <% if test_case[:message] %> -