diff options
Diffstat (limited to 'app/views/home/index.html.erb')
| -rw-r--r-- | app/views/home/index.html.erb | 22 | 
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> | 
