mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fix print views
This commit is contained in:
@@ -2,7 +2,11 @@
|
|||||||
<div class="round">
|
<div class="round">
|
||||||
<div class="game">
|
<div class="game">
|
||||||
<div class="game-top "><%= match.w1_bracket_name.html_safe %> <span></span></div>
|
<div class="game-top "><%= match.w1_bracket_name.html_safe %> <span></span></div>
|
||||||
<div class="bout-number"><p><%= link_to match.bout_number, spectate_match_path(match) %> <%= match.bracket_score_string %></p><p><%= @winner_place %> Place Winner</p></div>
|
<% if params[:print] %>
|
||||||
|
<div class="bout-number"><p><%= match.bout_number %> <%= match.bracket_score_string %></p><p><%= @winner_place %> Place Winner</p></div>
|
||||||
|
<% else %>
|
||||||
|
<div class="bout-number"><p><%= link_to match.bout_number, spectate_match_path(match) %> <%= match.bracket_score_string %></p><p><%= @winner_place %> Place Winner</p></div>
|
||||||
|
<% end %>
|
||||||
<div class="game-bottom "><%= match.w2_bracket_name.html_safe %><span></span></div>
|
<div class="game-bottom "><%= match.w2_bracket_name.html_safe %><span></span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ table.smallText tr td { font-size: 10px; }
|
|||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
/*background-color: #ddd;*/
|
/*background-color: #ddd;*/
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #000; /* Dark border so boxes stay visible when printed */
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ table.smallText tr td { font-size: 10px; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
.game-top {
|
.game-top {
|
||||||
border-bottom:1px solid #ddd;
|
border-bottom:1px solid #000;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
min-height: 12px;
|
min-height: 12px;
|
||||||
}
|
}
|
||||||
@@ -77,13 +77,13 @@ table.smallText tr td { font-size: 10px; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bracket-winner {
|
.bracket-winner {
|
||||||
border-bottom:1px solid #ddd;
|
border-bottom:1px solid #000;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
min-height: 12px;
|
min-height: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-bottom {
|
.game-bottom {
|
||||||
border-top:1px solid #ddd;
|
border-top:1px solid #000;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
min-height: 12px;
|
min-height: 12px;
|
||||||
}
|
}
|
||||||
@@ -131,4 +131,4 @@ table.smallText tr td { font-size: 10px; }
|
|||||||
<% elsif @tournament.tournament_type.include? "Regular Double Elimination" %>
|
<% elsif @tournament.tournament_type.include? "Regular Double Elimination" %>
|
||||||
<%= render 'double_elimination_bracket' %>
|
<%= render 'double_elimination_bracket' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,11 @@
|
|||||||
<% @round_matches.sort_by{|m| m.bracket_position_number}.each do |match| %>
|
<% @round_matches.sort_by{|m| m.bracket_position_number}.each do |match| %>
|
||||||
<div class="game">
|
<div class="game">
|
||||||
<div class="game-top "><%= match.w1_bracket_name.html_safe %> <span></span></div>
|
<div class="game-top "><%= match.w1_bracket_name.html_safe %> <span></span></div>
|
||||||
<div class="bout-number"><%= link_to match.bout_number, spectate_match_path(match) %> <%= match.bracket_score_string %> </div>
|
<% if params[:print] %>
|
||||||
|
<div class="bout-number"><%= match.bout_number %> <%= match.bracket_score_string %> </div>
|
||||||
|
<% else %>
|
||||||
|
<div class="bout-number"><%= link_to match.bout_number, spectate_match_path(match) %> <%= match.bracket_score_string %> </div>
|
||||||
|
<% end %>
|
||||||
<div class="game-bottom "><%= match.w2_bracket_name.html_safe %><span></span></div>
|
<div class="game-bottom "><%= match.w2_bracket_name.html_safe %><span></span></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user