From 4a463132da8e4737486cdd7c93009fe878889b9a Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 22 Jan 2014 10:10:36 -0500 Subject: [PATCH] Changed links on tournaments#show --- app/views/tournaments/show.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index 670de88..62109be 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -1,7 +1,8 @@

<%= notice %>

- -<%= link_to 'Edit', edit_tournament_path(@tournament) %> | -<%= link_to 'Back', tournaments_path %> +<% if user_signed_in? %> + <%= link_to "Edit #{@tournament.name}", edit_tournament_path(@tournament) %> | +<% end %> +<%= link_to 'Back', root_path %>

<%= @tournament.name %>