From 9eba4940c7b6f54153b3a619769bbae378be6fd8 Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Sat, 26 Apr 2014 20:05:45 -0400 Subject: Refactored show.html.erb for matches --- app/views/matches/show.html.erb | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'app/views') diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index 7a82527..8344a7a 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -78,24 +78,8 @@ function score_peers() { - <% case @tournament.sampling_method %> - <% when "Manual" %> - <% if @tournament.hosts.include? current_user %> - - <% @match.teams.each do |team| %> - <%= tag :input, {"type" => "radio", "name" => "winner", "value" => "#{team.id}" } %> - <%= "Team #{team.id} Won" %> - <% end %> - <%= submit_tag("Finish match") %> - <%= @tournament.settings['ScoringMethod'] %> - <% else %> -

The match is running; the host has yet to post the scores of the match.

- <% end %> - <% when "Double Blind" %> -

Double Blind isn't implemented yet.

- <% when "RiotAPI" %> -

Riot API is being called for Statistics. Results will appear shortly.

- <% end %> + <%= raw @match.tournament_stage.tournament.sampling_method.camelcase.constantize.render_user_interaction(@match, current_user) %> + <% when 2 %> -- cgit v1.2.3-54-g00ecf