diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-28 00:17:44 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-28 00:17:44 -0400 |
commit | e5f603c8c463e09fee5931d7e00e94e14b819347 (patch) | |
tree | b4a15936a3fc51586448585162e4070d7bb82fc8 /app/views/common | |
parent | ee238dbbca6ee979aa886a4f4cebad41e6f79cce (diff) | |
parent | 1fb957aeb5c6eb8ec57ecf28b18479bb47093243 (diff) |
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/_show_tournament.html.erb | 6 |
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> |