From f166da9a2f9d5a95f7496ed6b5f3baa338802970 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Fri, 27 Mar 2015 12:56:23 +0000 Subject: [PATCH] Fixed two pool to semi view --- app/views/static_pages/_twoPool.html.erb | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/app/views/static_pages/_twoPool.html.erb b/app/views/static_pages/_twoPool.html.erb index c0bcb2d..2e6fe4e 100644 --- a/app/views/static_pages/_twoPool.html.erb +++ b/app/views/static_pages/_twoPool.html.erb @@ -6,8 +6,10 @@ R1 R2 R3 - R4 - R5 + <% if @bracketType == "twoPoolsToFinal" %> + R4 + R5 + <% end %> @@ -17,8 +19,10 @@ <%= w.boutByRound(1,@matches) %>
<%= w.boutByRound(2,@matches) %> <%= w.boutByRound(3,@matches) %> - <%= w.boutByRound(4,@matches) %> - <%= w.boutByRound(5,@matches) %> + <% if @bracketType == "twoPoolsToFinal" %> + <%= w.boutByRound(4,@matches) %> + <%= w.boutByRound(5,@matches) %> + <% end %> <% end %> @@ -32,8 +36,10 @@ R1 R2 R3 - R4 - R5 + <% if @bracketType == "twoPoolsToFinal" %> + R4 + R5 + <% end %> @@ -43,8 +49,10 @@ <%= w.boutByRound(1,@matches) %>
<%= w.boutByRound(2,@matches) %> <%= w.boutByRound(3,@matches) %> - <%= w.boutByRound(4,@matches) %> - <%= w.boutByRound(5,@matches) %> + <% if @bracketType == "twoPoolsToFinal" %> + <%= w.boutByRound(4,@matches) %> + <%= w.boutByRound(5,@matches) %> + <% end %> <% end %>