View raw

1 <% ScoringCriterium.grouped_by_category.each do |category, criteria| %> 2 <h3><%= category.capitalize %></h3> 3 <table> 4 <thead> 5 <tr> 6 <th>Numéro</th> 7 <th>Score</th> 8 </tr> 9 </thead> 10 <tbody> 11 <% @tartiflettes.each do |tartiflette| %> 12 <tr> 13 <td><%= tartiflette.scoring_id %></td> 14 <td><%= tartiflette.scores.where(&:scoring_criterium.include? criteria) %></td> 15 </tr> 16 <% end %> 17 </tbody> 18 </table> 19 <% end %> 20