summaryrefslogtreecommitdiff
path: root/app/views/home/index.html.erb
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2024-12-30 14:46:16 +0100
committerMarius Peter <marius.peter@tutanota.com>2024-12-30 14:46:16 +0100
commitd16832c6af4215bfa18c34ef8fa46b1e3ef55d82 (patch)
treecae6358508352e5431b72fcc317bab2c7b15fb95 /app/views/home/index.html.erb
parenta9545c7fd324475710c2166514dcd4a62622f9e2 (diff)
Changed tartiflette list to flexbox container.
Diffstat (limited to 'app/views/home/index.html.erb')
-rw-r--r--app/views/home/index.html.erb35
1 files changed, 9 insertions, 26 deletions
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index ca8f3a3..cc25992 100644
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -4,39 +4,22 @@
<%= render "code_of_honor" %>
-<h2>Noter les Tartiflettes</h2>
-<ul>
+<!-- <h2>Noter les Tartiflettes</h2> -->
+<div class="tartiflette-container">
<% @tartiflettes.each do |tartiflette| %>
- <li><%= tartiflette.scoring_id %>
+ <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) %>
+ <%= link_to "Modifier", tartiflette_edit_scores_path(tartiflette), class: [ "tartiflette-link", "scored" ] %>
<% else %>
- <%= link_to "noter", new_tartiflette_score_path(tartiflette) %>
+ <%= link_to "Noter", new_tartiflette_score_path(tartiflette), class: [ "tartiflette-link", "unscored" ] %>
<% end %>
<% end %>
- </li>
+ </div>
<% end %>
-</ul>
-<!--
- <h2>Résultats</h2>
- <table>
- <thead>
- <tr>
- <th>Tartiflette</th>
- <th>Points</th>
- </tr>
- </thead>
- <tbody>
- <% TartifletteScoringService.leaderboard.each do |tartiflette, total_score| %>
- <tr>
- <td><%= tartiflette.scoring_id %></td>
- <td><%= total_score %></td>
- </tr>
- <% end %>
- </tbody>
- </table>
--->
+</div>
+
<p>
<%= link_to "Admin", admin_dashboard_path %>
</p>
Copyright 2019--2025 Marius PETER