From bcd73c5548666bae7fef57e7e22cb61126308259 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Tue, 31 Dec 2024 19:31:37 +0100 Subject: =?UTF-8?q?megaPush=20=F0=9F=98=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/dashboard/_scores_by_category.html.erb | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/views/admin/dashboard/_scores_by_category.html.erb (limited to 'app/views') diff --git a/app/views/admin/dashboard/_scores_by_category.html.erb b/app/views/admin/dashboard/_scores_by_category.html.erb new file mode 100644 index 0000000..065a549 --- /dev/null +++ b/app/views/admin/dashboard/_scores_by_category.html.erb @@ -0,0 +1,24 @@ +<% ScoringCriterium.grouped_by_category.each do |category, criteria| %> +

<%= category.titlecase %>

+ + + + + + + + + + + <% criteria.each do |criterium| %> + <% criterium.scores.each do |score| %> + + + + + + <% end %> + <% end %> + +
IDTartifletteCritèreScore
<%= score.tartiflette.scoring_id %><%= score.tartiflette.name %><%= criterium.name.capitalize %><%= score.value %>
+<% end %> -- cgit v1.2.3