From b45ed282cb9b677d2973d7d25839f4cc60d738bd Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Mon, 28 Apr 2014 18:36:30 -0400 Subject: Fixing Manual --- lib/sampling/manual.html.erb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lib/sampling/manual.html.erb') diff --git a/lib/sampling/manual.html.erb b/lib/sampling/manual.html.erb index cf873b4..c9dd2fe 100644 --- a/lib/sampling/manual.html.erb +++ b/lib/sampling/manual.html.erb @@ -1 +1,12 @@ - +<% 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 %> \ No newline at end of file -- cgit v1.2.3-2-g168b From 55f4c94d089ce622bd4fe0b4c915e8e4cb4122aa Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Mon, 28 Apr 2014 19:32:32 -0400 Subject: changes to peer review and manual sampling --- lib/sampling/manual.html.erb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/sampling/manual.html.erb') diff --git a/lib/sampling/manual.html.erb b/lib/sampling/manual.html.erb index c9dd2fe..7b71c29 100644 --- a/lib/sampling/manual.html.erb +++ b/lib/sampling/manual.html.erb @@ -1,12 +1,11 @@ -<% if @tournament.hosts.include? current_user %> - +<% 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 %> \ No newline at end of file -- cgit v1.2.3-2-g168b From 6684e7ef558f6b123577019708f6495f3475593c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 28 Apr 2014 19:41:42 -0400 Subject: Use labels in lib/sampling/manual.html.erb --- lib/sampling/manual.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/sampling/manual.html.erb') diff --git a/lib/sampling/manual.html.erb b/lib/sampling/manual.html.erb index 7b71c29..b783506 100644 --- a/lib/sampling/manual.html.erb +++ b/lib/sampling/manual.html.erb @@ -1,11 +1,13 @@ <% if @tournament.hosts.include? @current_user %> <% @match.teams.each do |team| %> - - <%= "Team #{team.id} Won" %> + <% end %>
<% else %>

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

-<% end %> \ No newline at end of file +<% end %> -- cgit v1.2.3-2-g168b