Permalink
Browse files

Display total in html_basic summary.

  • Loading branch information...
1 parent ee5d555 commit 1389d4ee5e02172e2efc06f7916197baf60a4fbd @pjcj committed May 7, 2005
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/Devel/Cover/Report/Html_basic.pm
@@ -411,9 +411,10 @@ $Templates{summary} = <<'EOT';
<table>
<tr>
<th class="header"> file </th>
- [% FOREACH header = R.headers.merge("total") %]
+ [% FOREACH header = R.headers %]
<th class="header"> [% header %] </th>
[% END %]
+ <th class="header"> total </th>
</tr>
[% FOREACH file = files %]
@@ -426,7 +427,7 @@ $Templates{summary} = <<'EOT';
[% END %]
</td>
- [% FOREACH criterion = R.showing.merge("total") %]
+ [% FOREACH criterion = R.showing %]
[% vals = R.get_summary(file, criterion) %]
[% IF vals.class %]
<td class="[% vals.class %]" title="[% vals.details %]">
@@ -440,6 +441,11 @@ $Templates{summary} = <<'EOT';
[% END %]
</td>
[% END %]
+
+ [% vals = R.get_summary(file, "total") %]
+ <td class="[% vals.class %]" title="[% vals.details %]">
+ [% vals.pc %]
+ </td>
</tr>
[% END %]
</table>

0 comments on commit 1389d4e

Please sign in to comment.