From c47a7dcdca1496fea00b5d1f896fc826167f2d86 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 1 Jan 2025 18:23:59 +0100 Subject: Updated admin dashboard. --- app/views/admin/dashboard/_scores_by_category.html.erb | 6 ++++-- app/views/admin/dashboard/index.html.erb | 10 +++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/views/admin/dashboard/_scores_by_category.html.erb b/app/views/admin/dashboard/_scores_by_category.html.erb index 065a549..ecb1e1b 100644 --- a/app/views/admin/dashboard/_scores_by_category.html.erb +++ b/app/views/admin/dashboard/_scores_by_category.html.erb @@ -3,8 +3,9 @@ - - + + + @@ -13,6 +14,7 @@ <% criteria.each do |criterium| %> <% criterium.scores.each do |score| %> + diff --git a/app/views/admin/dashboard/index.html.erb b/app/views/admin/dashboard/index.html.erb index b3dc2e9..169813c 100644 --- a/app/views/admin/dashboard/index.html.erb +++ b/app/views/admin/dashboard/index.html.erb @@ -1,13 +1,9 @@

Administrateur

-

- <%= button_to "Déconnexion", - session_path(session), - method: :delete %> -

+

<%= button_to "Déconnexion", session_path(session), method: :delete %>

Tartiflettes

-<%= render "scores_by_category" %> -

<%= link_to "Télécharger tous les scores en format CSV", admin_scores_export_path %>

+ +<%= render "scores_by_category" %> -- cgit v1.2.3
IDTartifletteSessionID scoreNom Critère Score
<%= score.session_id %> <%= score.tartiflette.scoring_id %> <%= score.tartiflette.name %> <%= criterium.name.capitalize %>