summaryrefslogtreecommitdiff
path: root/app/views/common/_show_tournament.html.erb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-28 00:00:47 -0400
committertkimia <tkimia@purdue.edu>2014-04-28 00:00:47 -0400
commit919ba959bbc782315b0a8b171aa96e2118a43067 (patch)
tree572f84d4ccb3cca0abc558fdaf1b7633c33fe82c /app/views/common/_show_tournament.html.erb
parent1c37ae521e29a5e0869aba52d324ed0cd4a830a6 (diff)
fixed the db seeds. They can now be started
Diffstat (limited to 'app/views/common/_show_tournament.html.erb')
-rw-r--r--app/views/common/_show_tournament.html.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb
index 151e5d2..12a7fea 100644
--- a/app/views/common/_show_tournament.html.erb
+++ b/app/views/common/_show_tournament.html.erb
@@ -33,8 +33,10 @@
<% else %>
<p style="margin-top:10px;"> You've signed up for this tournament! </p>
<% end %>
- <%= form_tag(tournament_brackets_path(target), method: "post") do %>
- <%= submit_tag("Make Bracket") %>
+ <% if target.status == 1 %>
+ <%= form_tag(tournament_brackets_path(target), method: "post") do %>
+ <%= submit_tag("Make Bracket") %>
+ <% end %>
<% end %>
<% end %>
</div>