From cf7b19838c85edaecfca748d16392ba5c020ab91 Mon Sep 17 00:00:00 2001
From: Jacob Cody Wimer
Date: Mon, 27 Apr 2015 15:10:30 -0400
Subject: [PATCH] Made new links buttons and moved them around
---
app/views/tournaments/show.html.erb | 32 ++++++++++++++++++-----------
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index 426f0c5..ca19718 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -13,6 +13,8 @@
<%= @tournament.address %>
+
+
Director:
<%= @tournament.director %>
@@ -31,6 +33,10 @@
School Lineups
+
+<% if user_signed_in? %><%= link_to "New #{@tournament.name} School" , "/schools/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %><% end %>
+
+
@@ -38,11 +44,8 @@
|
-
- <% if user_signed_in? %>
- <%= link_to "New #{@tournament.name} School" , "/schools/new?tournament=#{@tournament.id}" %>
- <% end %>
-
+
+
<% @schools.each do |school| %>
@@ -59,14 +62,17 @@
-<% if user_signed_in? %>
- <%= link_to "New #{@tournament.name} Weight" , "/weights/new?tournament=#{@tournament.id}" %>
+
+
+Weight Class Seeds
- <%= link_to "Create HS Weights" , "/static_pages/createCustomWeights?tournament=#{@tournament.id}&customValue=hs" %>
+<% if user_signed_in? %>
+ <%= 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 %>
-Weight Class Seeds
@@ -95,10 +101,12 @@
+Mats
+
<% if user_signed_in? %>
- <%= link_to "New #{@tournament.name} Mat" , "/mats/new?tournament=#{@tournament.id}" %>
-
-
+ <%= link_to "New #{@tournament.name} Mat" , "/mats/new?tournament=#{@tournament.id}", :class=>"btn btn-default" %>
+
+