From b7ddee6cc5255355e3f89833548917610760e5e8 Mon Sep 17 00:00:00 2001 From: tkimia Date: Mon, 7 Apr 2014 02:06:31 -0400 Subject: new graphics of the day --- app/views/matches/index.html.erb | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'app/views/matches/index.html.erb') diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index 742de14..def97ba 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -60,8 +60,8 @@ /> - " stroke="black" /> - + " stroke="black" /> + <% if @matches[i-1].teams.first %> Team <%= @matches[i-1].teams.first.id %> <% end %> - VS + VS - " stroke="black" /> - + " stroke="black" /> + <% if @matches[i-1].teams[1] %> Team <%= @matches[i-1].teams[1].id %> <% end %> @@ -98,10 +98,12 @@ <% if i > 1 %> <% end %> - <% lastrx = rx - lastry = ry - lastrh = rh - lastrw = rw %> + <% if Math.log2(i+1) == Math.log2(i+1).ceil %> + <% lastrx = rx + lastry = ry + lastrh = rh + lastrw = rw %> + <% end %> <% end %> -- cgit v1.2.3-2-g168b From 55f1d11f66f216f0aff40fbe3ba90373339beb55 Mon Sep 17 00:00:00 2001 From: tkimia Date: Mon, 7 Apr 2014 02:48:17 -0400 Subject: profiles updated --- app/views/matches/index.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/matches/index.html.erb') diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index def97ba..78c97bb 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -38,7 +38,8 @@ + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink"> <% lastrx = 0 lastry = 0 lastrh = 0 -- cgit v1.2.3-2-g168b