mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fixed matches show page
This commit is contained in:
@@ -5,6 +5,7 @@ class MatchesController < ApplicationController
|
|||||||
# GET /matches/1
|
# GET /matches/1
|
||||||
# GET /matches/1.json
|
# GET /matches/1.json
|
||||||
def show
|
def show
|
||||||
|
@tournament = @match.tournament
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,38 +1,28 @@
|
|||||||
|
<h4>Bout: <%= @match.bout_number %></h4>
|
||||||
|
<h4>Weight Class: <%= @match.wrestler1.weight.max %></h4>
|
||||||
|
<table class="table table-striped table-bordered table-condensed">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th><%= @match.wrestler1.name %> (<%= @match.wrestler1.school.name %>)</th>
|
||||||
|
<th><%= @match.wrestler2.name %> (<%= @match.wrestler2.school.name %>)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
<p>
|
<tbody>
|
||||||
<strong>R:</strong>
|
<tr>
|
||||||
<%= @match.w1_name %>
|
<td>Stats</td>
|
||||||
</p>
|
<td><%= @match.w1_stat %></td>
|
||||||
|
<td><%= @match.w2_stat %></td>
|
||||||
<p>
|
</tr>
|
||||||
<strong>G:</strong>
|
<td>Winner</td>
|
||||||
<%= @match.w2_name %>
|
<td><%= @match.winner_name %></td>
|
||||||
</p>
|
<td></td>
|
||||||
|
</tr>
|
||||||
<p>
|
<tr>
|
||||||
<strong>G stat:</strong>
|
<td>Score</td>
|
||||||
<%= @match.g_stat %>
|
<td><%= @match.score %></td>
|
||||||
</p>
|
<td></td>
|
||||||
|
</tr>
|
||||||
<p>
|
</tbody>
|
||||||
<strong>R stat:</strong>
|
</table>
|
||||||
<%= @match.r_stat %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<strong>Winner:</strong>
|
|
||||||
<%= @match.winner_id %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<strong>Win type:</strong>
|
|
||||||
<%= @match.win_type %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<strong>Score:</strong>
|
|
||||||
<%= @match.score %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<%= link_to 'Edit', edit_match_path(@match) %> |
|
|
||||||
<%= link_to 'Back', matches_path %>
|
|
||||||
Reference in New Issue
Block a user