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"%>