diff options
| author | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 18:23:59 +0100 | 
|---|---|---|
| committer | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 18:23:59 +0100 | 
| commit | c47a7dcdca1496fea00b5d1f896fc826167f2d86 (patch) | |
| tree | 7692484dcdb9386132fd2ada3a1397497b9dbdb1 /app/views/admin/dashboard | |
| parent | fa67785624240efd9f47dc488032d3a2ce41ae6f (diff) | |
Updated admin dashboard.
Diffstat (limited to 'app/views/admin/dashboard')
| -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" %>  |