summaryrefslogtreecommitdiff
path: root/app/views/matches/show.html.erb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-07 11:52:29 -0400
committertkimia <tkimia@purdue.edu>2014-04-07 11:52:29 -0400
commit22098c2551f02c170cfe62a124477eba4c80c044 (patch)
tree386582083cd246c8088060eb1b8d98e4b8ba5c1c /app/views/matches/show.html.erb
parentfe5496d65c2eb39d8e529e68bedacef1b3ecef5f (diff)
small visual changes to show
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r--app/views/matches/show.html.erb41
1 files changed, 27 insertions, 14 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index 16345ab..1f14e05 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -1,16 +1,29 @@
-<p>
- <strong>Status:</strong>
- <span id="current-id"> <%= @match.status %></span>
-</p>
-<p>
- <strong>Tournament:</strong>
- <%= @match.tournament.id %>
-</p>
+<div class="row" id="match-stats">
+ <div class="col-md-4 col-sm-3 ">
+ <strong>Status:</strong>
+ <% case @match.status %>
+ <% when 0 %>
+ Match Not Started
+ <% when 1 %>
+ Match in Progress
+ <% when 2 %>
+ Peer Review in Progress
+ <% when 3 %>
+ Finished
+ <% end %>
+ <span id="current-id"> <%= @match.status %></span>
+
+ </div>
+ <div class="col-md-4 col-sm-3">
+ <strong>Tournament:</strong>
+ <%= @match.tournament.name %>
+ </div>
-<p>
- <strong>Name:</strong>
- <%= @match.name %>
-</p>
+ <div class="col-md-4 col-sm-3">
+ <strong>Name:</strong>
+ <%= @match.name %>
+ </div>
+</div>
<!--
Match Status 0 => Created, waiting to start
Match Status 1 => Match is running, waiting to finish
@@ -45,8 +58,8 @@
</div>
<% unless @match.winner.nil? %>
- <p>
- <strong>Winner:</strong>
+ <p id="match-winner">
+ <strong>Winning Team:</strong>
<%= @match.winner.users.collect{|u| u.user_name}.join(", ") %>
</p>
<% end %>