mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Using action cable to send stats updates to the client and made a spectate page.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="round">
|
||||
<div class="game">
|
||||
<div class="game-top "><%= match.w1_bracket_name.html_safe %> <span></span></div>
|
||||
<div class="bout-number"><p><%= match.bout_number %> <%= match.bracket_score_string %></p><p><%= @winner_place %> Place Winner</p></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>
|
||||
<div class="game-bottom "><%= match.w2_bracket_name.html_safe %><span></span></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -65,6 +65,17 @@ table.smallText tr td { font-size: 10px; }
|
||||
text-align: center;
|
||||
/*padding-top: 15px;*/
|
||||
}
|
||||
|
||||
/* Style links within bout-number like default links */
|
||||
.bout-number a {
|
||||
color: #007bff; /* Or your preferred link color */
|
||||
text-decoration: underline;
|
||||
}
|
||||
.bout-number a:hover {
|
||||
color: #0056b3; /* Darker color on hover */
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.bracket-winner {
|
||||
border-bottom:1px solid #ddd;
|
||||
padding: 2px;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<% @round_matches.sort_by{|m| m.bracket_position_number}.each do |match| %>
|
||||
<div class="game">
|
||||
<div class="game-top "><%= match.w1_bracket_name.html_safe %> <span></span></div>
|
||||
<div class="bout-number"><%= match.bout_number %> <%= match.bracket_score_string %> </div>
|
||||
<div class="bout-number"><%= link_to match.bout_number, spectate_match_path(match) %> <%= match.bracket_score_string %> </div>
|
||||
<div class="game-bottom "><%= match.w2_bracket_name.html_safe %><span></span></div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user