From 60f4a380723971d9f318beda9ac0e995f5dca8f5 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 22 Jan 2014 13:40:11 -0500 Subject: [PATCH] Fixed show on wrestlers and weights --- app/views/schools/show.html.erb | 1 - app/views/weights/show.html.erb | 8 +++++--- app/views/wrestlers/show.html.erb | 12 +++++------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/views/schools/show.html.erb b/app/views/schools/show.html.erb index fb16a5c..967aac9 100644 --- a/app/views/schools/show.html.erb +++ b/app/views/schools/show.html.erb @@ -18,7 +18,6 @@ <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> | <% if user_signed_in? %> <%= link_to "Edit #{@school.name}", edit_school_path(@school) %> | - <%= link_to 'Back to Admin', '/admin/index' %> <% end %> diff --git a/app/views/weights/show.html.erb b/app/views/weights/show.html.erb index 9bd26ee..94057cc 100644 --- a/app/views/weights/show.html.erb +++ b/app/views/weights/show.html.erb @@ -1,10 +1,12 @@

<%= notice %>

Weight Class:<%= @weight.max %>

- + + <%= 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 %> |


diff --git a/app/views/wrestlers/show.html.erb b/app/views/wrestlers/show.html.erb index 2dfd3ea..08e9eb1 100644 --- a/app/views/wrestlers/show.html.erb +++ b/app/views/wrestlers/show.html.erb @@ -1,5 +1,10 @@

<%= notice %>

+<%= link_to "Back to #{@school.name}", "/schools/#{@school.id}" %> | +<% if user_signed_in? %> + <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler) %> | +<% end %> +

Name: <%= @wrestler.name %> @@ -15,15 +20,8 @@ <%= Weight.find(@wrestler.weight_id).max %>

-

- Seed: - <%= @wrestler.seed %> -

-

Original seed: <%= @wrestler.original_seed %>

-<%= link_to 'Edit', edit_wrestler_path(@wrestler) %> | -<%= link_to 'Back', wrestlers_path %>