Aggiunge i tornei con hub, pagina pubblica e tabellone per semifinali e finali.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 15:05:57 +02:00
co-authored by Cursor
parent d52434fb2e
commit a1f4c24a43
124 changed files with 6979 additions and 91 deletions
+22 -7
View File
@@ -118,13 +118,28 @@
</div>
<% end %>
<% if @sessions.empty? %>
<% if @upcoming_matches.any? %>
<div class="empty-state empty-state--soft">
<p><strong><%= t("live.index.empty_soft_title") %></strong></p>
<p><%= t("live.index.empty_soft_body") %></p>
</div>
<% elsif @club %>
<% if @sessions.empty? && @upcoming_matches.any? %>
<div class="empty-state empty-state--soft">
<p><strong><%= t("live.index.empty_soft_title") %></strong></p>
<p><%= t("live.index.empty_soft_body") %></p>
</div>
<% end %>
<% if @public_tournaments.any? %>
<h2 class="section-heading<%= " section-heading--spaced" if @sessions.any? || @upcoming_matches.any? %>"><%= t("tournaments.directory.section_on_live") %></h2>
<p class="results-hint"><%= t("tournaments.directory.live_hint") %></p>
<div class="team-directory-grid">
<% @public_tournaments.each do |tournament| %>
<%= render "public/tournament_pages/directory_card", tournament: tournament %>
<% end %>
</div>
<p class="team-public-more">
<%= link_to t("tournaments.directory.all_link"), public_tournament_pages_path %>
</p>
<% end %>
<% if @sessions.empty? && @upcoming_matches.empty? && @public_tournaments.blank? %>
<% if @club %>
<div class="empty-state">
<p><strong><%= t("live.index.empty_club_title", name: @club.name) %></strong></p>
<p>