<% if @subject_loader.all_methods.size == 0 %>

You made Spout cry... :'-(

No CSVs found in <%= Dir.pwd %>/csvs/<%= @standard_version %>/

<% else %>
<% @overall_results.each do |csv_file, major_outliers, minor_outliers, total_outliers| %> <% end %>
CSV Major Outliers Minor Outliers Total Outliers
<%= csv_file %> <%= number_with_delimiter(major_outliers) %> <%= number_with_delimiter(minor_outliers) %> <% css_class = 'success' %> <% css_class = 'warning' if minor_outliers > 0 %> <% css_class = 'danger' if major_outliers > 0 %> <%= number_with_delimiter(total_outliers) %>
<% @outlier_results.each do |outlier_result| %> <% end %>
CSV Column Median Major Outliers Minor Outliers
<% outlier_result.csv_files.each do |csv_file| %> <% css_class = 'success' if outlier_result.outliers.size == 0 %> <% css_class = 'warning-pale' if outlier_result.major_outliers.size == 0 and outlier_result.minor_outliers.size > 0 %> <%= csv_file %>
<% end %>
<%= outlier_result.method %> <% if outlier_result.median.kind_of?(Numeric) %> <%= number_with_delimiter(outlier_result.median.round(2)) %> <% end %> <%= outlier_result.units %> <% outliers = outlier_result.major_outliers.collect{|v| v.round(2)}.uniq %> <% if outliers.size > 6 %> <% outliers.first(3).each do |value| %> <%= number_with_delimiter(value) %> <% end %> ... <% outliers.last(3).each do |value| %> <%= number_with_delimiter(value) %> <% end %> <% else %> <% outliers.each do |value| %> <%= number_with_delimiter(value) %> <% end %> <% end %> <% outliers = outlier_result.minor_outliers.collect{|v| v.round(2)}.uniq %> <% if outliers.size > 6 %> <% outliers.first(3).each do |value| %> <%= number_with_delimiter(value) %> <% end %> ... <% outliers.last(3).each do |value| %> <%= number_with_delimiter(value) %> <% end %> <% else %> <% outliers.each do |value| %> <%= number_with_delimiter(value) %> <% end %> <% end %>
<% end %>