mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fixed cache names so multiple tournaments cache at once
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<% cache ["all_brackets", @tournament] do %>
|
<% cache ["#{@tournament.id}_all_brackets", @tournament] do %>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.pagebreak {
|
.pagebreak {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<% cache ["brackets", @weight] do %>
|
<% cache ["#{@weight.id}_bracket", @weight] do %>
|
||||||
</br>
|
</br>
|
||||||
</br>
|
</br>
|
||||||
</br>
|
</br>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<% cache ["team_scores", @tournament] do %>
|
<% cache ["#{@tournament.id}_team_scores", @tournament] do %>
|
||||||
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" , :class=>"btn btn-default"%>
|
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" , :class=>"btn btn-default"%>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<% if params[:print] == nil && Rails.env.production? %>
|
<% if params[:print] == nil && Rails.env.production? %>
|
||||||
<script type='text/javascript' src='//eclkmpbn.com/adServe/banners?tid=85597_138467_5&type=shadowbox&size=800x440'></script>
|
<script type='text/javascript' src='//eclkmpbn.com/adServe/banners?tid=85597_138467_5&type=shadowbox&size=800x440'></script>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% cache ["up_matches", @tournament] do %>
|
<% cache ["#{@tournament.id}_up_matches", @tournament] do %>
|
||||||
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default"%>
|
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default"%>
|
||||||
<script>
|
<script>
|
||||||
// $(document).ready(function() {
|
// $(document).ready(function() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<% if can? :manage, @school %>
|
<% if can? :manage, @school %>
|
||||||
| <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler), :class=>"btn btn-primary" %>
|
| <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler), :class=>"btn btn-primary" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% cache ["wrestlers", @wrestler] do %>
|
<% cache ["#{@wrestler.id}", @wrestler] do %>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user