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