From 85996d19553defa47fd4d8cd9e21df9e20e2365c Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 13 Jan 2016 13:10:33 +0000 Subject: [PATCH] Fixed back buttons thorugh app --- app/views/tournaments/delegate.html.erb | 2 +- app/views/tournaments/school_delegate.html.erb | 2 +- app/views/tournaments/teampointadjust.html.erb | 2 +- app/views/tournaments/weigh_in_weight.html.erb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/tournaments/delegate.html.erb b/app/views/tournaments/delegate.html.erb index 4c945db..9308740 100644 --- a/app/views/tournaments/delegate.html.erb +++ b/app/views/tournaments/delegate.html.erb @@ -1,4 +1,4 @@ -<%= link_to "Back to #{@tournament_name}", "/tournaments/#{@tournament_id}", :class=>"btn btn-default" %> +<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>

diff --git a/app/views/tournaments/school_delegate.html.erb b/app/views/tournaments/school_delegate.html.erb index 291206c..215f9a5 100644 --- a/app/views/tournaments/school_delegate.html.erb +++ b/app/views/tournaments/school_delegate.html.erb @@ -1,4 +1,4 @@ -<%= link_to "Back to #{@tournament_name}", "/tournaments/#{@tournament_id}", :class=>"btn btn-default" %> +<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>

diff --git a/app/views/tournaments/teampointadjust.html.erb b/app/views/tournaments/teampointadjust.html.erb index 3844354..6a467a9 100644 --- a/app/views/tournaments/teampointadjust.html.erb +++ b/app/views/tournaments/teampointadjust.html.erb @@ -1,4 +1,4 @@ -<%= link_to "Back to #{@tournament_name}", "/tournaments/#{@tournament_id}", :class=>"btn btn-default" %> +<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>

diff --git a/app/views/tournaments/weigh_in_weight.html.erb b/app/views/tournaments/weigh_in_weight.html.erb index 288589d..76ecbd7 100644 --- a/app/views/tournaments/weigh_in_weight.html.erb +++ b/app/views/tournaments/weigh_in_weight.html.erb @@ -1,4 +1,4 @@ -<%= link_to "Back to #{@tournament_name}", "/tournaments/#{@tournament_id}", :class=>"btn btn-default" %> +<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>

<%= link_to "Back to weigh ins","/tournaments/#{@tournament_id}/weigh_in", :class=>"btn btn-default" %>