summaryrefslogtreecommitdiff
path: root/app/views/matches/show.html.erb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-04 18:35:40 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-04 18:35:40 -0400
commitcb1e09a7ef061cd3c1ca7cf5793d09b2aacb1536 (patch)
tree180bc83085a718dae792db5abd53d72d6768dae9 /app/views/matches/show.html.erb
parentc61cbdc810cb5b00fa24cf33e34b261d36edaecc (diff)
Cookie size 20 minutes
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r--app/views/matches/show.html.erb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index 53c3b38..4973dc3 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -12,7 +12,24 @@
<strong>Name:</strong>
<%= @match.name %>
</p>
+<!--
+ Match Status 0 => Pairings Stage
+ Match Status 1 => Match Active
+ Match Status 2 => Match Finished (Peer Review Starts)
+ Match Status 3 => Match Completed (Scores Completed OR Results Page)
+ Four views:- (status is Match status)
+ A. Pairings, when status is 0 for either Host or Player Or when status is 1 for player
+ B. A page the host will see if status is 1 OR 2
+ C. The Peer review page that the players will see if status is 2.
+ D. The page everyone will see when status is 3.
+
+ Note:- The change of status from 1 to 2 is coming from League Data Pull (RIOT API)
+
+-->
+<!--
+ This is what the HOST will see when the Match Status is NOT 3
+-->
<% if (@tournament.hosts.include?(current_user) and @match.winner.nil?) %>
<%= form_for([@tournament, @match], method: "put") do |f| %>
<ul>
@@ -25,6 +42,8 @@
<% end %>
<% end %>
+
+
<% unless @match.winner.nil? %>
<p>
<strong>Winner:</strong>