<% @mat_assignment_rules.each do |rule| %> <% end %>
Mat Weight Classes (Max) Bracket Positions Rounds <%= link_to ' New Mat Assignment Rule', new_tournament_mat_assignment_rule_path(@tournament), class: "fas fa-plus" %>
<%= 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), data: { turbo_method: :delete, turbo_confirm: "Are you sure?" }, class: "fas fa-trash-alt" %>