<%= @tournament.name %> Info

<% if (can? :manage, @tournament) && @tournament.curently_generating_matches == 1 %>
Match Generation In Progress

Tournament bracket generation is currently running. Please refresh the page to check progress.

<% end %> <% if (can? :manage, @tournament) && @tournament.has_active_jobs? %>
Background Jobs In Progress

The following background jobs are currently running:

Please refresh the page to check progress.

<% end %>

Address: <%= @tournament.address %>

Director: <%= @tournament.director %>

Director email: <%= @tournament.director_email %>

Tournament Type: <%= @tournament.tournament_type %>

Tournament Date: <%= @tournament.date %>

Tournament Information Is Public: <%= @tournament.is_public %>

<% if can? :read, @tournament %>

Brackets and team scores can be found in the white nav-bar up top.

<% end %>

Schools

Click to see lineups, bout numbers, score breakdowns, and stats.


<% if can? :manage, @tournament %><% end %> <% @schools.each do |school| %> <% end %>
Name<%= link_to " New School" , "/schools/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %>
<% if can? :read, school %> <%= link_to "#{school.name}", school %> <% else %> <%= "#{school.name}" %> <% end %> <% if can? :manage, school %> <%= link_to '', edit_school_path(school), :class=>"fas fa-edit" %> <% if can? :manage, @tournament %> <%= link_to '', school, method: :delete, data: { confirm: "Are you sure you want to delete #{school.name}?" }, :class=>"fas fa-trash-alt" %> <% end %> <% end %>

Weight Class Seeds


<% if can? :manage, @tournament %><% end %> <% @weights.each do |weight| %> <% if can? :manage, @tournament %> <% end %> <% end %>
Weight Class Bracket Size<%= link_to " New Weight Class" , "/weights/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %>
<% if can? :read, @tournament %> <%= link_to "#{weight.max}", weight %> <% else %> <%= "#{weight.max}" %> <% end %> <%= weight.bracket_size %> <%= link_to '', edit_weight_path(weight), :class=>"fas fa-edit" %> <%= link_to '', weight, method: :delete, data: { confirm: "Are you sure you want to delete the #{weight.max} weight class?" }, :class=>"fas fa-trash-alt" %>
<% if can? :manage, @tournament %>

Mats


<% @mats.each do |mat| %> <% if can? :manage, @tournament %> <% end %> <% end %>
Name <%= link_to " New Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"fas fa-plus" %>
<%= link_to "Mat #{mat.name}", mat %> <%= link_to '', mat, method: :delete, data: { confirm: "Are you sure you want to delete Mat #{mat.name}?" }, :class=>"fas fa-trash-alt" %> <%= link_to '', "/mats/#{mat.id}/assign_next_match", method: :post, :class=>"fas fa-solid fa-arrow-right" %>
<% end %>