mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
If there are no rounds the bout sheets should not be displayed
This commit is contained in:
@@ -22,9 +22,11 @@
|
||||
<br><%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %>
|
||||
<br><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" , target: :_blank %>
|
||||
<br>Bout Sheets: <ul>
|
||||
<% if @tournament.total_rounds > 0 %>
|
||||
<% 1.upto(@tournament.total_rounds) do |round| %>
|
||||
<li><%= link_to "Round #{round}" , "/tournaments/#{@tournament.id}/bout_sheets?round=#{round}&print=true" , target: :_blank %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<li><%= link_to "All Rounds" , "/tournaments/#{@tournament.id}/bout_sheets?round=All&print=true" , target: :_blank %></li>
|
||||
</ul>
|
||||
<br><%= link_to "Deduct Team Points" , "/tournaments/#{@tournament.id}/teampointadjust" %>
|
||||
|
||||
Reference in New Issue
Block a user