summaryrefslogtreecommitdiff
path: root/app/views/home/index.html.erb
blob: ca8f3a393356c5de2149dee874c9b0f5b8b3dd34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<h1>World Tartiflette Tour 2024</h1>

<%= image_tag("blason_Savoie.png", :alt => "blason de la Savoie", id: "blason", width: 80) %>

<%= render "code_of_honor" %>

<h2>Noter les Tartiflettes</h2>
<ul>
    <% @tartiflettes.each do |tartiflette| %>
	<li><%= tartiflette.scoring_id %>
	    <% if session[:agreed_to_code_of_honor] %>
		<% if TartifletteScoringService.scored?(tartiflette, session) %>
		    <%= link_to "modifier", tartiflette_edit_scores_path(tartiflette) %>
		<% else %>
		    <%= link_to "noter", new_tartiflette_score_path(tartiflette) %>
		<% end %>
	    <% end %>
	</li>
    <% end %>
</ul>
<!-- 
     <h2>Résultats</h2>
     <table>
     <thead>
     <tr>
     <th>Tartiflette</th>
     <th>Points</th>
     </tr>
     </thead>
     <tbody>
     <% TartifletteScoringService.leaderboard.each do |tartiflette, total_score| %>
     <tr>
     <td><%= tartiflette.scoring_id %></td>
     <td><%= total_score %></td>
     </tr>
     <% end %>
     </tbody>
     </table>
-->
<p>
    <%= link_to "Admin", admin_dashboard_path %>
</p>
Copyright 2019--2025 Marius PETER