From 80352d2b8c9550929e3c25e9ae0b2517532648bf Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Thu, 24 Apr 2014 12:21:09 -0400 Subject: Fixed Scoring for all 1v1 games. Scheduling needs to be fixed to proceed to larger tournys. --- app/views/matches/show.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/matches') 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 %>
  • <%= user.user_name %>
  • <% else %> -
  • <%= user.user_name %> - SCORE: <%= @match.scores.select{|s| s.user == user}.first.value %>
  • +
  • <%= user.user_name %> - SCORE: <%= Statistic.where(:name => "score", :user => user, :match => @match).first.value %>
  • <% end %> <% end %> @@ -75,6 +75,7 @@ function score_peers() { <% end %> <% when 1 %> + <% if @tournament.hosts.include? current_user %> <% @match.teams.each do |team| %> -- cgit v1.2.3-54-g00ecf