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,8 +22,10 @@
|
|||||||
<br><%= link_to "All Matches" , "/tournaments/#{@tournament.id}/matches" %>
|
<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><%= link_to "Full Screen Bout Board" , "/tournaments/#{@tournament.id}/up_matches?print=true" , target: :_blank %>
|
||||||
<br>Bout Sheets: <ul>
|
<br>Bout Sheets: <ul>
|
||||||
<% 1.upto(@tournament.total_rounds) do |round| %>
|
<% if @tournament.total_rounds > 0 %>
|
||||||
<li><%= link_to "Round #{round}" , "/tournaments/#{@tournament.id}/bout_sheets?round=#{round}&print=true" , target: :_blank %></li>
|
<% 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 %>
|
<% end %>
|
||||||
<li><%= link_to "All Rounds" , "/tournaments/#{@tournament.id}/bout_sheets?round=All&print=true" , target: :_blank %></li>
|
<li><%= link_to "All Rounds" , "/tournaments/#{@tournament.id}/bout_sheets?round=All&print=true" , target: :_blank %></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user