mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-12 08:18:44 +00:00
Fixed show on wrestlers and weights
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> |
|
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> |
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
<%= link_to "Edit #{@school.name}", edit_school_path(@school) %> |
|
<%= link_to "Edit #{@school.name}", edit_school_path(@school) %> |
|
||||||
<%= link_to 'Back to Admin', '/admin/index' %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
<h1>Weight Class:<%= @weight.max %></h1>
|
<h1>Weight Class:<%= @weight.max %></h1>
|
||||||
|
|
||||||
|
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> |
|
||||||
|
<% if user_signed_in? %>
|
||||||
|
<%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight) %> |
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight) %> |
|
|
||||||
<%= link_to 'Back to Weight Classes', weights_path %> |
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
|
|
||||||
|
<%= link_to "Back to #{@school.name}", "/schools/#{@school.id}" %> |
|
||||||
|
<% if user_signed_in? %>
|
||||||
|
<%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler) %> |
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<strong>Name:</strong>
|
<strong>Name:</strong>
|
||||||
<%= @wrestler.name %>
|
<%= @wrestler.name %>
|
||||||
@@ -15,15 +20,8 @@
|
|||||||
<%= Weight.find(@wrestler.weight_id).max %>
|
<%= Weight.find(@wrestler.weight_id).max %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
|
||||||
<strong>Seed:</strong>
|
|
||||||
<%= @wrestler.seed %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<strong>Original seed:</strong>
|
<strong>Original seed:</strong>
|
||||||
<%= @wrestler.original_seed %>
|
<%= @wrestler.original_seed %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<%= link_to 'Edit', edit_wrestler_path(@wrestler) %> |
|
|
||||||
<%= link_to 'Back', wrestlers_path %>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user