diff options
author | nfoy <nfoy@purdue.edu> | 2014-04-28 20:39:47 -0400 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-04-28 20:39:47 -0400 |
commit | 82c6b59f4afeba005ef2dc47483873c85fa33ffd (patch) | |
tree | 746c9ca12941a21fc42af802924967d1ff0b6a0d /app/views/common | |
parent | d2c700eb31e6a81cb5befe2f9dc57afa7fe8dc91 (diff) | |
parent | 1c5930a82f80abff26556e85c71834af9803bc7c (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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb index 826eeaa..02852cf 100644 --- a/app/views/common/_show_tournament.html.erb +++ b/app/views/common/_show_tournament.html.erb @@ -33,7 +33,7 @@ <% elsif target.players.include?(current_user)%> <p class="message">You've signed up for this tournament!</p> <% end %> - <% if target.status == 1 && target.stages.first.scheduling_method == "elimination" && target.stages.first.matches.first.status == 0 %> + <% if target.status == 1 && target.stages.order(:id).first.scheduling_method == "elimination" && target.stages.order(:id).first.matches.order(:id).first.status < 2 %> <%= form_tag(tournament_brackets_path(target), method: "post") do %> <%= submit_tag("Make Bracket") %> <% end %> |