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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user