Updated admin dashboard.

Commit
c47a7dcdca1496fea00b5d1f896fc826167f2d86
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
app/views/admin/dashboard/_scores_by_category.html.erb
index 065a5492..ecb1e1b7 100644..100644
@@ -3,8 +3,9 @@
3 3 <table>
4 4 <thead>
5 5 <tr>
6 Removed: <th>ID</th>
7 Removed: <th>Tartiflette</th>
6 Added: <th>Session</th>
7 Added: <th>ID score</th>
8 Added: <th>Nom</th>
8 9 <th>Critère</th>
9 10 <th>Score</th>
10 11 </tr>
@@ -13,6 +14,7 @@
13 14 <% criteria.each do |criterium| %>
14 15 <% criterium.scores.each do |score| %>
15 16 <tr>
17 Added: <td><%= score.session_id %></td>
16 18 <td><%= score.tartiflette.scoring_id %></td>
17 19 <td><%= score.tartiflette.name %></td>
18 20 <td><%= criterium.name.capitalize %></td>
app/views/admin/dashboard/index.html.erb
index b3dc2e9e..169813c1 100644..100644
@@ -1,13 +1,9 @@
1 1 <h1>Administrateur</h1>
2 2
3 Removed: <p>
4 Removed: <%= button_to "Déconnexion",
5 Removed: session_path(session),
6 Removed: method: :delete %>
7 Removed: </p>
3 Added: <p><%= button_to "Déconnexion", session_path(session), method: :delete %></p>
8 4
9 5 <h2>Tartiflettes</h2>
10 6
11 Removed: <%= render "scores_by_category" %>
12 Removed:
13 7 <p><%= link_to "Télécharger tous les scores en format CSV", admin_scores_export_path %></p>
8 Added:
9 Added: <%= render "scores_by_category" %>