lib/templates/flog_page.html.erb in p8-metric_fu-0.8.0.16 vs lib/templates/flog_page.html.erb in p8-metric_fu-0.8.2

- old
+ new

@@ -1,25 +1,13 @@ <html> <head> <style> - <%= inline_css("default.css") %> + <%= open(File.join(MetricFu::TEMPLATE_DIR, "flog.css")) { |f| f.read } %> </style> </head> <body> <p>Score: <%= score %></p> <% scanned_methods.each do |sm| %> - <p><strong><%= sm.name %> (<%= sm.score %>)</strong></p> - <table> - <tr> - <th>Score</th> - <th>Operator</th> - </tr> - <% sm.operators.each_with_index do |operator, count| %> - <tr class='<%= cycle("light", "dark", count) %>'> - <td class='score'><%= sprintf(SCORE_FORMAT, operator.score) %></td> - <td class='score'><%= operator.operator %></td> - </tr> - <% end %> - </table> - <% end %> + <%= sm.to_html %> + <% end %> </body> </html> \ No newline at end of file