diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 9ad0842..5830ad1 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -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
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index 9ad8f00..a8dc15f 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -30,19 +30,19 @@
<%= @tournament.tournament_type %>
-
-
<% if user_signed_in? %>
-
<%= link_to "Generate Pool Matches" , "/static_pages/generate_matches?tournament=#{@tournament.id}", :class=>"btn btn-danger" %>
-<% end %>
+<% end %>
+
School Lineups
-<% 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" %>
+
+
+<% end %>
@@ -76,9 +76,9 @@
<%= link_to "New #{@tournament.name} Weight" , "/weights/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %>
<%= link_to "Create HS Weights" , "/static_pages/createCustomWeights?tournament=#{@tournament.id}&customValue=hs", :class=>"btn btn-default" %>
+
+
<% end %>
-
-
-
-
-
-Mats
-
<% if user_signed_in? %>
- <%= link_to "New #{@tournament.name} Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %>
-
-
-<% end %>
-
-
-
- | Name |
- |
-
-
-
-
- <% @mats.each do |mat| %>
+
+
+ Mats
+
+ <%= link_to "New #{@tournament.name} Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %>
+
+
+
+
- | <%= mat.name %> |
-
- <% if user_signed_in? %>
- <%= link_to 'Destroy', mat, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %>
- <% end %>
- |
+ Name |
+ |
- <% end %>
-
-
+
+
+
+ <% @mats.each do |mat| %>
+
+ | <%= mat.name %> |
+
+ <% if user_signed_in? %>
+ <%= link_to 'Destroy', mat, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %>
+ <% end %>
+ |
+
+ <% end %>
+
+
+<% end %>