mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-22 06:30:23 +00:00
Cached all_brackets page
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
<style>
|
<% cache ["all_brackets", @tournament] do %>
|
||||||
.pagebreak {
|
|
||||||
|
<style>
|
||||||
|
.pagebreak {
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
border: none;
|
border: none;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
@@ -10,17 +12,17 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
left: 1in;
|
left: 1in;
|
||||||
height: 1in;
|
height: 1in;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<%= link_to "Back to #{@tournament.name} weights", "/tournaments/#{@tournament.id}/brackets" %>
|
<%= link_to "Back to #{@tournament.name} weights", "/tournaments/#{@tournament.id}/brackets" %>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div id="exportable">
|
<div id="exportable">
|
||||||
<% @tournament.weights.sort_by{|w| w.max}.each do |w| %>
|
<% @tournament.weights.sort_by{|w| w.max}.each do |w| %>
|
||||||
<table class='pagebreak'>
|
<table class='pagebreak'>
|
||||||
<td>
|
<td>
|
||||||
<% @weight = w %>
|
<% @weight = w %>
|
||||||
@@ -48,5 +50,6 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</table>
|
</table>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user