mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-24 17:04:43 +00:00
18 lines
861 B
Plaintext
18 lines
861 B
Plaintext
<div class="round">
|
|
<% @round_matches.sort_by{|m| m.bracket_position_number}.each do |match| %>
|
|
<% cache ["bracket_round_match", match, match.wrestler1, match.wrestler2, params[:print].to_s] do %>
|
|
<div class="game">
|
|
<div class="game-top "><%= match.w1_bracket_name.html_safe %> <span></span></div>
|
|
<% if params[:print] %>
|
|
<div class="bout-number"><%= match.bout_number %> <%= match.bracket_score_string %> </div>
|
|
<% else %>
|
|
<div class="bout-number"><%= link_to match.bout_number, spectate_match_path(match) %> <%= match.bracket_score_string %> </div>
|
|
<% end %>
|
|
<div class="bout-number">Round <%= match.round %></div>
|
|
<div class="bout-number"><%= match.bracket_position %></div>
|
|
<div class="game-bottom "><%= match.w2_bracket_name.html_safe %><span></span></div>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|