From 395a12042bbe9c4eeca60e41c75004c3bdad4e87 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 23 Apr 2014 11:41:26 -0400 Subject: views/matches/index.html: tidy up --- app/views/matches/index.html.erb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'app/views') diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index fda8582..8a50fee 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -2,16 +2,16 @@ - - - - - - - - - - + + + + + + + + + + <% @tournament.stages_ordered.keys.sort.each do |stage_key| %> <% stage = @tournament.stages_ordered[stage_key] %> <% stage.matches_ordered.keys.sort.reverse.each do |match_key| %> -- cgit v1.2.3-2-g168b From 1ea3366c70ad87f2c0d3fa3ae3a56f27b691f696 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 23 Apr 2014 13:07:25 -0400 Subject: clean up the javascript everywhere --- app/views/layouts/application.html.erb | 7 ++----- app/views/matches/show.html.erb | 28 ++++++++++++++-------------- app/views/search/go.html.erb | 23 ++++++++--------------- app/views/tournaments/show.html.erb | 31 ------------------------------- 4 files changed, 24 insertions(+), 65 deletions(-) (limited to 'app/views') diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index eca33b8..116554b 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -4,15 +4,12 @@ Leaguer <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> + <%= javascript_include_tag "#{params[:controller]}", "data-turbolinks-track" => true %>%> + <%= javascript_include_tag "#{params[:controller]}_#{params[:action]}", "data-turbolinks-track" => true %>%> <%= csrf_meta_tags %> <%= yield :head %> -
NameStatusWinner
NameStatusWinner