diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/admin/dashboard/_scores_by_category.html.erb | 6 | ||||
-rw-r--r-- | 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 @@ <table> <thead> <tr> - <th>ID</th> - <th>Tartiflette</th> + <th>Session</th> + <th>ID score</th> + <th>Nom</th> <th>Critère</th> <th>Score</th> </tr> @@ -13,6 +14,7 @@ <% criteria.each do |criterium| %> <% criterium.scores.each do |score| %> <tr> + <td><%= score.session_id %></td> <td><%= score.tartiflette.scoring_id %></td> <td><%= score.tartiflette.name %></td> <td><%= criterium.name.capitalize %></td> 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 @@ <h1>Administrateur</h1> -<p> - <%= button_to "Déconnexion", - session_path(session), - method: :delete %> -</p> +<p><%= button_to "Déconnexion", session_path(session), method: :delete %></p> <h2>Tartiflettes</h2> -<%= render "scores_by_category" %> - <p><%= link_to "Télécharger tous les scores en format CSV", admin_scores_export_path %></p> + +<%= render "scores_by_category" %> |