From 22098c2551f02c170cfe62a124477eba4c80c044 Mon Sep 17 00:00:00 2001 From: tkimia Date: Mon, 7 Apr 2014 11:52:29 -0400 Subject: small visual changes to show --- app/views/matches/show.html.erb | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) (limited to 'app/views/matches') 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 @@ -

- Status: - <%= @match.status %> -

-

- Tournament: - <%= @match.tournament.id %> -

+
+
+ Status: + <% case @match.status %> + <% when 0 %> + Match Not Started + <% when 1 %> + Match in Progress + <% when 2 %> + Peer Review in Progress + <% when 3 %> + Finished + <% end %> + <%= @match.status %> + +
+
+ Tournament: + <%= @match.tournament.name %> +
-

- Name: - <%= @match.name %> -

+
+ Name: + <%= @match.name %> +
+