| <%= rule.mat.name %> |
<% Array(rule.weight_classes).each_with_index do |weight_id, index| %>
<% weight = @weights_by_id[weight_id.to_i] %>
<%= weight ? weight.max : "N/A" %>
<%= ", " unless index == Array(rule.weight_classes).size - 1 %>
<% end %>
|
<%= Array(rule.bracket_positions).join(", ") %> |
<%= Array(rule.rounds).join(", ") %> |
<%= link_to '', edit_tournament_mat_assignment_rule_path(@tournament, rule), class: "fas fa-edit" %>
<%= link_to '', tournament_mat_assignment_rule_path(@tournament, rule), method: :delete, data: { confirm: "Are you sure?" }, class: "fas fa-trash-alt" %>
|
<% end %>