Initial commit: monorepo Match Live TV.
Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
25
backend/app/views/admin/dashboard/index.html.erb
Normal file
25
backend/app/views/admin/dashboard/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<h2>Sessioni attive</h2>
|
||||
<% if @active_sessions.any? %>
|
||||
<table>
|
||||
<thead><tr><th>Match</th><th>Status</th><th>Iniziata</th><th></th></tr></thead>
|
||||
<tbody>
|
||||
<% @active_sessions.each do |s| %>
|
||||
<tr>
|
||||
<td><%= s.match.team.name %> vs <%= s.match.opponent_name %></td>
|
||||
<td><span class="badge live"><%= s.status %></span></td>
|
||||
<td><%= s.started_at %></td>
|
||||
<td><%= link_to "Dettaglio", admin_session_path(s) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p>Nessuna sessione attiva.</p>
|
||||
<% end %>
|
||||
|
||||
<h2>Squadre</h2>
|
||||
<ul>
|
||||
<% @teams.each do |t| %>
|
||||
<li><%= link_to t.name, admin_team_path(t) %> — <%= t.matches.count %> partite</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user