mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-19 11:33:49 +00:00
Cleaning up main tournament page and tournament controller
This commit is contained in:
@@ -61,14 +61,6 @@ class TournamentsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def createHsWeights
|
||||
if params[:tournament]
|
||||
if user_signed_in?
|
||||
@tournament.createHsWeights
|
||||
end
|
||||
redirect_to "/tournaments/#{@tournament.id}"
|
||||
end
|
||||
end
|
||||
# DELETE /tournaments/1
|
||||
# DELETE /tournaments/1.json
|
||||
def destroy
|
||||
|
||||
@@ -30,19 +30,19 @@
|
||||
<%= @tournament.tournament_type %>
|
||||
</p>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<% if user_signed_in? %>
|
||||
<br>
|
||||
<%= link_to "Generate Pool Matches" , "/static_pages/generate_matches?tournament=#{@tournament.id}", :class=>"btn btn-danger" %>
|
||||
<% end %>
|
||||
<br>
|
||||
<br>
|
||||
<% end %>
|
||||
<br>
|
||||
<h3>School Lineups</h3>
|
||||
<br>
|
||||
<% if user_signed_in? %><%= link_to "New #{@tournament.name} School" , "/schools/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %><% end %>
|
||||
<% if user_signed_in? %>
|
||||
<%= link_to "New #{@tournament.name} School" , "/schools/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %>
|
||||
<br>
|
||||
<br>
|
||||
<% end %>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -76,9 +76,9 @@
|
||||
<%= link_to "New #{@tournament.name} Weight" , "/weights/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %>
|
||||
<br>
|
||||
<%= link_to "Create HS Weights" , "/static_pages/createCustomWeights?tournament=#{@tournament.id}&customValue=hs", :class=>"btn btn-default" %>
|
||||
<br>
|
||||
<br>
|
||||
<% end %>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -104,16 +104,14 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<% if user_signed_in? %>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Mats</h3>
|
||||
<br>
|
||||
<% if user_signed_in? %>
|
||||
<%= link_to "New #{@tournament.name} Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %>
|
||||
<br>
|
||||
<br>
|
||||
<% end %>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -135,6 +133,7 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user