%#= render @team %>
Partidos jugados: <%= @team.games.count %>
Nombre Apellidos | Puntos | Disponible | Jugados | En casa | Fuera | <% @team.games.order(:matchday).each do |game| %><%= link_to game.matchday, game_path(game) %> | <% end %>Nombre y apellidos | |
<%= t %> | <%= link_to "#{player.name} #{player.last_name}", player_path(player) %> | <%= player.points %> | <%= player.games.count %> | <%= player.played %> (<%= player.played_per %>%) | <%= player.home_played %> (<%= player.home_played_per %>%) | <%= player.away_played %> (<%= player.away_played_per %>%) | <% @team.games.order(:matchday).each do |game| %> <%= show_signup_status(player,game) %> <% end %><%= link_to "#{player.name} #{player.last_name}".truncate(20), player_path(player) %> | |
Jugadores disponibles | <% @team.games.order(:matchday).each do |game| %><%= game.players.count %> | <% end %>|||||||
<% @team.games.order(:matchday).each do |game| %> |
<% if game.state.eql? "close" %>
<%= link_to "Disponibles", change_status_game_path(id: game.id, act: "availables") %>
<%= link_to "Cerrar", change_status_game_path(id: game.id, act: "close") %> <% else %> <%= link_to "Disponibles", change_status_game_path(id: game.id, act: "availables") %> <%= link_to "Cerrar", change_status_game_path(id: game.id, act: "close") %> <% end %> |
<% end %>