summaryrefslogtreecommitdiff
path: root/app/views/home/index.html.erb
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2024-12-31 19:24:40 +0100
committerMarius Peter <marius.peter@tutanota.com>2024-12-31 19:24:40 +0100
commitfe5c5b24c462243fcb7c13b3f380378d8935fba2 (patch)
tree0305a6deee63ec0dbf6405e7b89fb0329cabf964 /app/views/home/index.html.erb
parent5286e295a5ba141a547475e2c555335d4297fdcb (diff)
Updated views.
Diffstat (limited to 'app/views/home/index.html.erb')
-rw-r--r--app/views/home/index.html.erb22
1 files changed, 18 insertions, 4 deletions
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index cc25992..3dfba3c 100644
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -1,25 +1,39 @@
<h1>World Tartiflette Tour 2024</h1>
-<%= image_tag("blason_Savoie.png", :alt => "blason de la Savoie", id: "blason", width: 80) %>
+<%= image_tag("blason_Savoie.png",
+ alt: "blason de la Savoie",
+ id: "blason",
+ width: 80) %>
<%= render "code_of_honor" %>
-<!-- <h2>Noter les Tartiflettes</h2> -->
+<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" ] %>
+ <%= 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" ] %>
+ <%= 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