1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/app/views/layouts/_lsidebar.html.erb

38 lines
1.9 KiB
Plaintext

<!-- sidebar -->
<% if @tournament %>
<div class="" style="padding-right: 1%;">
<h4>Tournament Links</h4>
<ul class="">
<li><%= link_to "Tournament home" , "/tournaments/#{@tournament.id}/" %></li>
<li><%= link_to "Brackets" , "/tournaments/#{@tournament.id}/brackets" %></li>
<li><%= link_to "Bout Board" , "/tournaments/#{@tournament.id}/up_matches" %></li>
<li><%= link_to "Team Scores" , "/tournaments/#{@tournament.id}/team_scores" %></li>
</ul>
</div>
<% if can? :manage, @tournament %>
<br><br>
<div class="" style="padding-right: 1%;">
<h4>Tournament Director Links</h4>
<br><strong>Pages</strong><br>
<br><%= link_to "Weigh In Page" , "/tournaments/#{@tournament.id}/weigh_in" %>
<br><%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %>
<br><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" %>
<br><br><strong>Time Savers</strong><br>
<br><%= link_to "Create High School Weights" , "/tournaments/#{@tournament.id}/create_custom_weights?customValue=hs",data: { confirm: 'Are you sure? This will delete all current weights.' } %>
<br><br><strong>Tournament Actions</strong><br>
<br><%= link_to "Generate Brackets" , "/tournaments/#{@tournament.id}/generate_matches", data: { confirm: 'Are you sure? This will delete all current matches.' } %>
</div>
<% end %>
<% end %>
<br><br>