lib/templates/flog.html.erb in p8-metric_fu-0.8.9 vs lib/templates/flog.html.erb in p8-metric_fu-0.8.9.1

- old
+ new

@@ -23,9 +23,16 @@ <td class='score'><%= page.scanned_methods.length %></td> <td class='score'><%= sprintf(SCORE_FORMAT, page.average_score) %></td> <td class='score'><%= sprintf(SCORE_FORMAT, page.highest_score) %></td> </tr> <% end %> + <tr> + <td><strong>Totals</strong></td> + <td class='score'><strong><%= sprintf(SCORE_FORMAT, pages.inject(0){|sum, page| sum + page.score }) %></strong></td> + <td class='score'><strong><%= pages.inject(0){|sum, page| sum + page.scanned_methods.length } %></strong></td> + <td class='score'></td> + <td class='score'></td> + </tr> </table> <p>Generated on <%= Time.now.localtime %></p> </body> </html> \ No newline at end of file