diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-28 00:35:54 -0400 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-28 00:35:54 -0400 |
commit | fa8ec3d1e21de1456af74d411117a1b9d5e0bbc0 (patch) | |
tree | db39868fb318275947ea4e419295bdcf47978a8c /app/views/common | |
parent | fbd258986b41b96a9f901d6be03bcfa9111fe13d (diff) | |
parent | 0a5242c3a460d0b99be0adc4593774a58b68154a (diff) |
Merge branch 'master' of https://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> |