summaryrefslogtreecommitdiff
path: root/app/views/matches/show.html.erb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-24 12:21:09 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-24 12:21:09 -0400
commit80352d2b8c9550929e3c25e9ae0b2517532648bf (patch)
tree6e0378b5f9c5241633743cad2690286542768110 /app/views/matches/show.html.erb
parent1942d4307f392d61d13cdc488fecd523f55e427d (diff)
Fixed Scoring for all 1v1 games. Scheduling needs to be fixed to proceed to larger tournys.
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r--app/views/matches/show.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index e9809a2..e1fe29e 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -47,7 +47,7 @@ function score_peers() {
<% if @match.status <= 1 %>
<li><%= user.user_name %></li>
<% else %>
- <li><%= user.user_name %> - SCORE: <%= @match.scores.select{|s| s.user == user}.first.value %></li>
+ <li><%= user.user_name %> - SCORE: <%= Statistic.where(:name => "score", :user => user, :match => @match).first.value %></li>
<% end %>
<% end %>
</ul></li>
@@ -75,6 +75,7 @@ function score_peers() {
<% end %>
<% when 1 %>
<!-- Started, waiting to finish -->
+ <!-- This will depend on the Sampling Method Eventually instead of always being Manual -->
<% if @tournament.hosts.include? current_user %>
<input type="hidden" name="update_action" value="finish">
<% @match.teams.each do |team| %>