lib/templates/reek.html.erb in p8-metric_fu-0.8.4.15 vs lib/templates/reek.html.erb in p8-metric_fu-0.8.4.16

- old
+ new

@@ -1,22 +1,30 @@ <html> <head> <title>Reek Results</title> <style> - <%= inline_css("#{template_name}.css") %> + <%= inline_css("default.css") %> </style> </head> <body> <h1>Reek Results</h1> - <table width="80%" border="1"> - <% @matches.each do |match| %> - <tr><td><%= match.first %></td> - <td> - <% match[1..-1].each do |line| %> - <%= line %><br> - <% end %> - </td></tr> + <p><a href="http://reek.rubyforge.org/">Reek</a> detects common code smells in ruby code.</p> + <table> + <tr> + <th>File Path</th> + <th>Code Smell</th> + </tr> + <% @matches.each_with_index do |match, count| %> + <tr class='<%= cycle("light", "dark", count) %>'> + <td><%= match.first %></td> + <td> + <% match[1..-1].each do |line| %> + <%= line %><br> + <% end %> + </td> + </tr> <% end %> </table> + <p>Generated on <%= Time.now.localtime %></p> </body> -</html> +</html> \ No newline at end of file