1
0
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:
2019-01-09 07:35:38 -05:00
parent 07b51103bf
commit 5c0c4f8d7b

View File

@@ -22,8 +22,10 @@
<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>
<% 1.upto(@tournament.total_rounds) do |round| %>
<li><%= link_to "Round #{round}" , "/tournaments/#{@tournament.id}/bout_sheets?round=#{round}&print=true" , target: :_blank %></li>
<% 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>