summaryrefslogtreecommitdiff
path: root/app/views/home/index.html.erb
blob: cc2599253f72c2f8721e1fee2753eb5161a624aa (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
<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> -->
<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>

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