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

- old
+ new

@@ -1,9 +1,15 @@ <h3>Flog Results</h3> <p><a href='http://ruby.sadi.st/Flog.html'>Flog</a> measures code complexity.</p> -<img src="flog.png?<%= Time.now %>"> +<% graph_name = 'flog' %> +<% 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 %> <h2>Total Flog score for all methods: <%= @flog[:total]%></h2> <h2>Average Flog score for all methods: <%= @flog[:average]%></h2> <table> @@ -27,9 +33,10 @@ <% @flog[:pages].each do |page| %> <h2 id="<%= page[:path].gsub(/[^a-z]+/, '_') %>"><%= link_to_filename page[:path] %></h2> <% page[:scanned_methods].each do |sm| %> <p><%= sm[:name] %></p> + <p>Total Score: <%=sm[:score]%></p> <table> <tr> <th>Score</th> <th>Operator</th> </tr>