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:
13
backend/app/views/admin/teams/index.html.erb
Normal file
13
backend/app/views/admin/teams/index.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<h2>Teams</h2>
|
||||
<table>
|
||||
<thead><tr><th>Nome</th><th>Sport</th><th>YouTube</th></tr></thead>
|
||||
<tbody>
|
||||
<% @teams.each do |t| %>
|
||||
<tr>
|
||||
<td><%= link_to t.name, admin_team_path(t) %></td>
|
||||
<td><%= t.sport %></td>
|
||||
<td><%= t.youtube_credential.present? ? "✓" : "—" %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
10
backend/app/views/admin/teams/show.html.erb
Normal file
10
backend/app/views/admin/teams/show.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<h2><%= @team.name %></h2>
|
||||
<p>Sport: <%= @team.sport %></p>
|
||||
<p>YouTube: <%= @team.youtube_credential ? "Connesso" : link_to("Connetti", "/api/v1/teams/#{@team.id}/youtube/authorize") %></p>
|
||||
|
||||
<h3>Partite</h3>
|
||||
<ul>
|
||||
<% @matches.each do |m| %>
|
||||
<li><%= m.opponent_name %> — <%= m.scheduled_at %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user