lib/templates/awesome/reek.html.erb in nielsm-metric_fu-1.1.1 vs lib/templates/awesome/reek.html.erb in nielsm-metric_fu-1.3.1

- old
+ new

@@ -1,9 +1,15 @@ <h3>Reek Results</h3> <p><a href="http://reek.rubyforge.org/">Reek</a> detects common code smells in ruby code.</p> -<img src="reek.png?<%= Time.now %>"> +<% graph_name = 'reek' %> +<% if MetricFu.configuration.graph_engine == :gchart %> +<img src="<%= graph_name %>.png?<%= Time.now.to_i %>" /> +<% else %> +<canvas id="graph"></canvas> +<script language="javascript" src="<%= graph_name %>.js?<%= Time.now.to_i %>" type="text/javascript"></script> +<% end %> <table> <tr> <th>File Path</th> <th>Method</th>