mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
57 lines
4.0 KiB
Plaintext
57 lines
4.0 KiB
Plaintext
<% if @tournament and @tournament.id %>
|
|
<h2><%= @tournament.name %> Links</h2>
|
|
<nav class="navbar navbar-default navbar-static-top" role="navigation" id="tournament-navbar">
|
|
<div class="container">
|
|
<div class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li><%= link_to " Tournament Home" , "/tournaments/#{@tournament.id}", class: "fas fa-home" %></li>
|
|
<li class="dropdown">
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fas fa-poll-h"> Tournament Results/Brackets</i>
|
|
<span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li><strong>Results</strong></li>
|
|
<li><%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %></li>
|
|
<li><strong>Brackets</strong></li>
|
|
<% @tournament.weights.sort_by{|weight| weight.max }.each do |weight| %>
|
|
<li><%= link_to "#{weight.max}" , "/tournaments/#{@tournament.id}/brackets/#{weight.id}" %></li>
|
|
<% end %>
|
|
<li><%= link_to "All Brackets (Printable)", "/tournaments/#{@tournament.id}/all_brackets?print=true", target: :_blank %></li>
|
|
</ul>
|
|
</li>
|
|
<li><%= link_to " Bout Board" , "/tournaments/#{@tournament.id}/up_matches", class: "fas fa-list-alt" %></li>
|
|
|
|
<% if can? :manage, @tournament %>
|
|
<li class="dropdown">
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#director"><i class="fas fa-tools"> Tournament Director Links</i>
|
|
<span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li><strong>Pages</strong></li>
|
|
<li></span> <%= link_to "Edit Tournament Info", edit_tournament_path(@tournament) %></li>
|
|
<li><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %></li>
|
|
<li><%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %></li>
|
|
<li><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" , target: :_blank %></li>
|
|
<li><%= link_to "Deduct Team Points" , "/tournaments/#{@tournament.id}/teampointadjust" %></li>
|
|
<% if can? :destroy, @tournament %>
|
|
<li><%= link_to "Tournament Delegation" , "/tournaments/#{@tournament.id}/delegate" %></li>
|
|
<% end %>
|
|
<li><%= link_to "School Delegation" , "/tournaments/#{@tournament.id}/school_delegate"%></li>
|
|
<% if @tournament.total_rounds > 0 %>
|
|
<li><strong>Printable Bout Sheets</strong></li>
|
|
<% 1.upto(@tournament.total_rounds) do |round| %>
|
|
<li><%= link_to "Print Round #{round}" , "/tournaments/#{@tournament.id}/bout_sheets?round=#{round}&print=true" , target: :_blank %></li>
|
|
<% end %>
|
|
<% end %>
|
|
<li><strong>Time Savers</strong></li>
|
|
<li><%= link_to "Create Boys High School Weights (106-285)" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=#{Weight::HS_WEIGHT_CLASSES}",data: { confirm: 'Are you sure? This will delete all current weights.' } %></li>
|
|
<li><%= link_to "Create Girls High School Weights (101-235)" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=#{Weight::HS_GIRLS_WEIGHT_CLASSES}",data: { confirm: 'Are you sure? This will delete all current weights.' } %></li>
|
|
<li><strong>Tournament Actions</strong></li>
|
|
<li><%= link_to "Calculate Team Scores" , "/tournaments/#{@tournament.id}/calculate_team_scores", :method => :put %></li>
|
|
<li><%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' } %></li>
|
|
<li><%= link_to "Export Data" , "/tournaments/#{@tournament.id}/export?print=true", target: :_blank %></li>
|
|
</ul>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<% end %> |