summaryrefslogtreecommitdiff
path: root/app/views/home/index.html.erb
blob: 3dfba3c6edc8290f8399a16c0dce6903bc90f9d1 (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
<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</h2>
<div class="tartiflette-container">
    <% @tartiflettes.each do |tartiflette| %>
	<div class="tartiflette-box">
	    <p>Tartiflette <%= tartiflette.scoring_id %></p>
	    <% if session[:agreed_to_code_of_honor] %>
		<% if TartifletteScoringService.scored?(tartiflette, session) %>
		    <%= link_to "Modifier",
				tartiflette_edit_scores_path(tartiflette),
				class: [ "tartiflette-link", "scored" ] %>
		<% else %>
		    <%= link_to "Noter",
				new_tartiflette_score_path(tartiflette),
				class: [ "tartiflette-link", "unscored" ] %>
		<% end %>
	    <% end %>
	</div>
    <% end %>
</div>

<h2>Participants</h2>
<ul>
    <% @tartiflettes.shuffle.each do |tartiflette| %>
	<li><%= tartiflette.name %></li>
    <% end %>
</ul>

<p>
    <%= link_to "Admin", admin_dashboard_path %>
</p>
Copyright 2019--2025 Marius PETER