From fe5c5b24c462243fcb7c13b3f380378d8935fba2 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Tue, 31 Dec 2024 19:24:40 +0100 Subject: Updated views. --- app/views/home/index.html.erb | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'app/views/home') 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 @@

World Tartiflette Tour 2024

-<%= 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" %> - +

Noter

<% @tartiflettes.each do |tartiflette| %>

Tartiflette <%= tartiflette.scoring_id %>

<% 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 %>
<% end %>
+

Participants

+ +

<%= link_to "Admin", admin_dashboard_path %>

-- cgit v1.2.3