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