mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-13 00:26:31 +00:00
Moved static pages actions to tournament where it made sense
This commit is contained in:
23
app/views/tournaments/bracket.html.erb
Normal file
23
app/views/tournaments/bracket.html.erb
Normal file
@@ -0,0 +1,23 @@
|
||||
</br>
|
||||
</br>
|
||||
</br>
|
||||
|
||||
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
|
||||
<br>
|
||||
<br>
|
||||
<h1><%= @weight.max %> lbs Bracket</h1>
|
||||
|
||||
<%= render 'pool' %>
|
||||
|
||||
<% if @bracketType == "twoPoolsToFinal" %>
|
||||
<%= render 'twoPoolFinalBracket' %>
|
||||
<% end %>
|
||||
<% if @bracketType == "twoPoolsToSemi" %>
|
||||
<%= render 'twoPoolSemiBracket' %>
|
||||
<% end %>
|
||||
<% if @bracketType == "fourPoolsToQuarter" %>
|
||||
<%= render 'fourPoolQuarterBracket' %>
|
||||
<% end %>
|
||||
<% if @bracketType == "fourPoolsToSemi" %>
|
||||
<%= render 'fourPoolSemiBracket' %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user