From 2657f4a8357ac4e970d4cf467ee592fedb64c0b9 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Tue, 19 Jan 2016 19:22:52 +0000 Subject: [PATCH] Less pages with pop up ads --- app/views/tournaments/bracket.html.erb | 4 +--- app/views/tournaments/brackets.html.erb | 3 +++ app/views/tournaments/team_scores.html.erb | 4 +--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/views/tournaments/bracket.html.erb b/app/views/tournaments/bracket.html.erb index 43d6433..9751208 100644 --- a/app/views/tournaments/bracket.html.erb +++ b/app/views/tournaments/bracket.html.erb @@ -1,6 +1,4 @@ -<% if Rails.env.production? %> - -<% end %> + <% cache ["brackets", @weight] do %>

diff --git a/app/views/tournaments/brackets.html.erb b/app/views/tournaments/brackets.html.erb index 7e1c47d..a2dbf10 100644 --- a/app/views/tournaments/brackets.html.erb +++ b/app/views/tournaments/brackets.html.erb @@ -1,3 +1,6 @@ +<% if Rails.env.production? %> + +<% end %> <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>

diff --git a/app/views/tournaments/team_scores.html.erb b/app/views/tournaments/team_scores.html.erb index 6f3dac1..1615566 100644 --- a/app/views/tournaments/team_scores.html.erb +++ b/app/views/tournaments/team_scores.html.erb @@ -1,6 +1,4 @@ -<% if Rails.env.production? %> - -<% end %> + <% cache ["team_scores", @tournament] do %> <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" , :class=>"btn btn-default"%>